home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / packages / generic-sc.elc.z / generic-sc.elc
Emacs Compiled Lisp  |  1998-05-21  |  44.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 32 3a 34 30 20 31 | 39 39 38 0a 3b 3b 3b 20 |:52:40 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 61 63 6b |s-20.3/l|isp/pack|
|000000a0| 61 67 65 73 2f 67 65 6e | 65 72 69 63 2d 73 63 2e |ages/gen|eric-sc.|
|000000b0| 65 6c 0a 3b 3b 3b 20 65 | 6d 61 63 73 20 76 65 72 |el.;;; e|macs ver|
|000000c0| 73 69 6f 6e 20 32 30 2e | 34 20 22 45 6d 65 72 61 |sion 20.|4 "Emera|
|000000d0| 6c 64 22 20 58 45 6d 61 | 63 73 20 20 4c 75 63 69 |ld" XEma|cs Luci|
|000000e0| 64 2e 0a 3b 3b 3b 20 62 | 79 74 65 63 6f 6d 70 20 |d..;;; b|ytecomp |
|000000f0| 76 65 72 73 69 6f 6e 20 | 32 2e 32 35 20 58 45 6d |version |2.25 XEm|
|00000100| 61 63 73 3b 20 32 32 2d | 4d 61 72 2d 39 36 2e 0a |acs; 22-|Mar-96..|
|00000110| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|00000120| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|00000130| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|00000140| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000150| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 20 31 |exist in| Emacs 1|
|00000160| 39 2e 0a 0a 28 69 66 20 | 28 61 6e 64 20 28 62 6f |9...(if |(and (bo|
|00000170| 75 6e 64 70 20 27 65 6d | 61 63 73 2d 76 65 72 73 |undp 'em|acs-vers|
|00000180| 69 6f 6e 29 0a 09 20 28 | 6f 72 20 28 61 6e 64 20 |ion).. (|or (and |
|00000190| 28 62 6f 75 6e 64 70 20 | 27 65 70 6f 63 68 3a 3a |(boundp |'epoch::|
|000001a0| 76 65 72 73 69 6f 6e 29 | 20 65 70 6f 63 68 3a 3a |version)| epoch::|
|000001b0| 76 65 72 73 69 6f 6e 29 | 0a 09 20 20 20 20 20 28 |version)|.. (|
|000001c0| 73 74 72 69 6e 67 2d 6c | 65 73 73 70 20 65 6d 61 |string-l|essp ema|
|000001d0| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 32 30 22 29 |cs-versi|on "20")|
|000001e0| 29 29 0a 20 20 20 20 28 | 65 72 72 6f 72 20 22 60 |)). (|error "`|
|000001f0| 67 65 6e 65 72 69 63 2d | 73 63 2e 65 6c 27 20 77 |generic-|sc.el' w|
|00000200| 61 73 20 63 6f 6d 70 69 | 6c 65 64 20 66 6f 72 20 |as compi|led for |
|00000210| 45 6d 61 63 73 20 32 30 | 22 29 29 0a 0a 28 6f 72 |Emacs 20|"))..(or|
|00000220| 20 28 62 6f 75 6e 64 70 | 20 27 63 75 72 72 65 6e | (boundp| 'curren|
|00000230| 74 2d 6c 6f 61 64 2d 6c | 69 73 74 29 20 28 73 65 |t-load-l|ist) (se|
|00000240| 74 71 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |tq curre|nt-load-|
|00000250| 6c 69 73 74 20 6e 69 6c | 29 29 0a 0a 0a 28 63 75 |list nil|))...(cu|
|00000260| 73 74 6f 6d 2d 64 65 63 | 6c 61 72 65 2d 67 72 6f |stom-dec|lare-gro|
|00000270| 75 70 20 27 67 65 6e 65 | 72 69 63 2d 73 63 20 6e |up 'gene|ric-sc n|
|00000280| 69 6c 20 22 47 65 6e 65 | 72 69 63 20 69 6e 74 65 |il "Gene|ric inte|
|00000290| 72 66 61 63 65 20 74 6f | 20 73 6f 75 72 63 65 20 |rface to| source |
|000002a0| 63 6f 6e 74 72 6f 6c 20 | 73 79 73 74 65 6d 73 22 |control |systems"|
|000002b0| 20 3a 70 72 65 66 69 78 | 20 22 73 63 2d 22 20 3a | :prefix| "sc-" :|
|000002c0| 67 72 6f 75 70 20 27 74 | 6f 6f 6c 73 29 0a 28 63 |group 't|ools).(c|
|000002d0| 75 73 74 6f 6d 2d 64 65 | 63 6c 61 72 65 2d 76 61 |ustom-de|clare-va|
|000002e0| 72 69 61 62 6c 65 20 27 | 73 63 2d 64 69 66 66 2d |riable '|sc-diff-|
|000002f0| 63 6f 6d 6d 61 6e 64 20 | 27 27 28 22 64 69 66 66 |command |''("diff|
|00000300| 22 29 20 22 2a 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |") "*The| command|
|00000310| 2f 66 6c 61 67 73 20 6c | 69 73 74 20 74 6f 20 62 |/flags l|ist to b|
|00000320| 65 20 75 73 65 64 20 69 | 6e 20 63 6f 6e 73 74 72 |e used i|n constr|
|00000330| 75 63 74 69 6e 67 20 64 | 69 66 66 20 63 6f 6d 6d |ucting d|iff comm|
|00000340| 61 6e 64 73 2e 22 20 3a | 74 79 70 65 20 27 28 72 |ands." :|type '(r|
|00000350| 65 70 65 61 74 20 73 74 | 72 69 6e 67 29 20 3a 67 |epeat st|ring) :g|
|00000360| 72 6f 75 70 20 27 67 65 | 6e 65 72 69 63 2d 73 63 |roup 'ge|neric-sc|
|00000370| 29 0a 23 40 33 39 20 2a | 54 68 65 20 63 6f 6d 6d |).#@39 *|The comm|
|00000380| 61 6e 64 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |and name| of the |
|00000390| 63 76 73 20 70 72 6f 67 | 72 61 6d 2e 1f 0a 28 64 |cvs prog|ram...(d|
|000003a0| 65 66 76 61 72 20 63 76 | 73 2d 70 72 6f 67 72 61 |efvar cv|s-progra|
|000003b0| 6d 20 22 63 76 73 22 20 | 28 23 24 20 2e 20 2d 38 |m "cvs" |(#$ . -8|
|000003c0| 38 37 29 29 0a 28 63 75 | 73 74 6f 6d 2d 64 65 63 |87)).(cu|stom-dec|
|000003d0| 6c 61 72 65 2d 76 61 72 | 69 61 62 6c 65 20 27 73 |lare-var|iable 's|
|000003e0| 63 2d 6d 6f 64 65 2d 65 | 78 70 65 72 74 20 27 6e |c-mode-e|xpert 'n|
|000003f0| 69 6c 20 22 2a 54 72 65 | 61 74 20 75 73 65 72 20 |il "*Tre|at user |
|00000400| 61 73 20 65 78 70 65 72 | 74 3b 20 73 75 70 70 72 |as exper|t; suppr|
|00000410| 65 73 73 20 79 65 73 2d | 6e 6f 20 70 72 6f 6d 70 |ess yes-|no promp|
|00000420| 74 73 20 6f 6e 20 73 6f | 6d 65 20 74 68 69 6e 67 |ts on so|me thing|
|00000430| 73 2e 22 20 3a 74 79 70 | 65 20 27 62 6f 6f 6c 65 |s." :typ|e 'boole|
|00000440| 61 6e 20 3a 67 72 6f 75 | 70 20 27 67 65 6e 65 72 |an :grou|p 'gener|
|00000450| 69 63 2d 73 63 29 0a 28 | 63 75 73 74 6f 6d 2d 64 |ic-sc).(|custom-d|
|00000460| 65 63 6c 61 72 65 2d 76 | 61 72 69 61 62 6c 65 20 |eclare-v|ariable |
|00000470| 27 73 63 2d 6d 61 78 2d | 6c 6f 67 2d 73 69 7a 65 |'sc-max-|log-size|
|00000480| 20 27 35 31 30 20 22 2a | 4d 61 78 69 6d 75 6d 20 | '510 "*|Maximum |
|00000490| 61 6c 6c 6f 77 61 62 6c | 65 20 73 69 7a 65 20 6f |allowabl|e size o|
|000004a0| 66 20 61 20 73 6f 75 72 | 63 65 20 63 6f 6e 74 72 |f a sour|ce contr|
|000004b0| 6f 6c 20 6c 6f 67 20 6d | 65 73 73 61 67 65 2e 22 |ol log m|essage."|
|000004c0| 20 3a 74 79 70 65 20 27 | 69 6e 74 65 67 65 72 20 | :type '|integer |
|000004d0| 3a 67 72 6f 75 70 20 27 | 67 65 6e 65 72 69 63 2d |:group '|generic-|
|000004e0| 73 63 29 0a 28 63 75 73 | 74 6f 6d 2d 64 65 63 6c |sc).(cus|tom-decl|
|000004f0| 61 72 65 2d 76 61 72 69 | 61 62 6c 65 20 27 73 63 |are-vari|able 'sc|
|00000500| 2d 63 63 61 73 65 2d 63 | 6f 6d 6d 65 6e 74 2d 6f |-ccase-c|omment-o|
|00000510| 6e 20 27 27 28 63 68 65 | 63 6b 6f 75 74 20 63 68 |n ''(che|ckout ch|
|00000520| 65 63 6b 6f 75 74 2d 64 | 69 72 20 63 68 65 63 6b |eckout-d|ir check|
|00000530| 69 6e 2d 64 69 72 20 72 | 65 6e 61 6d 65 20 6e 65 |in-dir r|ename ne|
|00000540| 77 2d 62 72 74 79 70 65 | 20 6e 65 77 2d 62 72 61 |w-brtype| new-bra|
|00000550| 6e 63 68 20 63 68 65 63 | 6b 69 6e 2d 6d 65 72 67 |nch chec|kin-merg|
|00000560| 65 20 63 72 65 61 74 65 | 2d 6c 61 62 65 6c 20 6c |e create|-label l|
|00000570| 61 62 65 6c 2d 73 6f 75 | 72 63 65 73 29 20 22 2a |abel-sou|rces) "*|
|00000580| 4f 70 65 72 61 74 69 6f | 6e 73 20 6f 6e 20 77 68 |Operatio|ns on wh|
|00000590| 69 63 68 20 63 6f 6d 6d | 65 6e 74 73 20 77 6f 75 |ich comm|ents wou|
|000005a0| 6c 64 20 62 65 20 61 70 | 70 72 65 63 69 61 74 65 |ld be ap|preciate|
|000005b0| 64 2e 5c 6e 57 65 20 63 | 68 65 63 6b 20 74 68 65 |d.\nWe c|heck the|
|000005c0| 20 76 61 6c 75 65 73 20 | 63 68 65 63 6b 6f 75 74 | values |checkout|
|000005d0| 2c 20 63 68 65 63 6b 6f | 75 74 2d 64 69 72 2c 20 |, checko|ut-dir, |
|000005e0| 63 68 65 63 6b 69 6e 2d | 64 69 72 2c 5c 6e 72 65 |checkin-|dir,\nre|
|000005f0| 6e 61 6d 65 2c 20 6e 65 | 77 2d 62 72 74 79 70 65 |name, ne|w-brtype|
|00000600| 2c 20 6e 65 77 2d 62 72 | 61 6e 63 68 2c 20 63 72 |, new-br|anch, cr|
|00000610| 65 61 74 65 2d 6c 61 62 | 65 6c 2c 5c 6e 61 6e 64 |eate-lab|el,\nand|
|00000620| 20 6c 61 62 65 6c 2d 73 | 6f 75 72 63 65 73 20 61 | label-s|ources a|
|00000630| 73 20 73 79 6d 62 6f 6c | 73 2e 22 20 3a 74 79 70 |s symbol|s." :typ|
|00000640| 65 20 27 28 72 65 70 65 | 61 74 20 73 79 6d 62 6f |e '(repe|at symbo|
|00000650| 6c 29 20 3a 67 72 6f 75 | 70 20 27 67 65 6e 65 72 |l) :grou|p 'gener|
|00000660| 69 63 2d 73 63 29 0a 23 | 40 31 33 31 20 57 68 65 |ic-sc).#|@131 Whe|
|00000670| 74 68 65 72 20 74 6f 20 | 72 65 73 65 72 76 65 20 |ther to |reserve |
|00000680| 63 68 65 63 6b 6f 75 74 | 73 20 6f 72 20 6e 6f 74 |checkout|s or not|
|00000690| 2e 20 42 79 20 64 65 66 | 61 75 6c 74 2c 20 74 68 |. By def|ault, th|
|000006a0| 69 73 20 69 73 20 6e 69 | 6c 20 2d 20 64 6f 6e 27 |is is ni|l - don'|
|000006b0| 74 2e 0a 4f 74 68 65 72 | 20 76 61 6c 75 65 73 20 |t..Other| values |
|000006c0| 61 72 65 20 74 20 2d 20 | 64 6f 2c 20 61 6e 64 20 |are t - |do, and |
|000006d0| 61 6e 79 74 68 69 6e 67 | 20 65 6c 73 65 2c 20 65 |anything| else, e|
|000006e0| 67 2e 20 27 61 73 6b 20 | 2d 20 61 73 6b 2e 1f 0a |g. 'ask |- ask...|
|000006f0| 28 64 65 66 76 61 72 20 | 73 63 2d 63 63 61 73 65 |(defvar |sc-ccase|
|00000700| 2d 72 65 73 65 72 76 65 | 20 6e 69 6c 20 28 23 24 |-reserve| nil (#$|
|00000710| 20 2e 20 31 36 34 35 29 | 29 0a 28 62 79 74 65 2d | . 1645)|).(byte-|
|00000720| 63 6f 64 65 20 22 c0 c1 | 21 ac 85 c2 0b c4 5c 22 |code "..|!.....\"|
|00000730| 11 c1 0d 42 15 c6 09 21 | ac b9 c7 20 11 c8 0b c4 |...B...!|... ....|
|00000740| 09 23 88 c8 09 c9 ca 23 | 88 c8 09 cb cc 23 88 c8 |.#.....#|.....#..|
|00000750| 09 cd ce 23 88 c8 09 cf | d0 23 88 c8 09 d1 d2 23 |...#....|.#.....#|
|00000760| 88 c8 09 d3 d4 23 88 c8 | 09 d5 d6 23 88 c8 09 d7 |.....#..|...#....|
|00000770| d8 23 88 c0 87 22 20 5b | 62 6f 75 6e 64 70 20 73 |.#..." [|boundp s|
|00000780| 63 2d 70 72 65 66 69 78 | 2d 6d 61 70 20 6c 6f 6f |c-prefix|-map loo|
|00000790| 6b 75 70 2d 6b 65 79 20 | 67 6c 6f 62 61 6c 2d 6d |kup-key |global-m|
|000007a0| 61 70 20 22 18 76 22 20 | 63 75 72 72 65 6e 74 2d |ap ".v" |current-|
|000007b0| 6c 6f 61 64 2d 6c 69 73 | 74 20 6b 65 79 6d 61 70 |load-lis|t keymap|
|000007c0| 70 20 6d 61 6b 65 2d 73 | 70 61 72 73 65 2d 6b 65 |p make-s|parse-ke|
|000007d0| 79 6d 61 70 20 64 65 66 | 69 6e 65 2d 6b 65 79 20 |ymap def|ine-key |
|000007e0| 22 76 22 20 73 63 2d 6e | 65 78 74 2d 6f 70 65 72 |"v" sc-n|ext-oper|
|000007f0| 61 74 69 6f 6e 20 22 3d | 22 20 73 63 2d 73 68 6f |ation "=|" sc-sho|
|00000800| 77 2d 63 68 61 6e 67 65 | 73 20 22 6c 22 20 73 63 |w-change|s "l" sc|
|00000810| 2d 73 68 6f 77 2d 68 69 | 73 74 6f 72 79 20 22 70 |-show-hi|story "p|
|00000820| 22 20 73 63 2d 76 69 73 | 69 74 2d 70 72 65 76 69 |" sc-vis|it-previ|
|00000830| 6f 75 73 2d 72 65 76 69 | 73 69 6f 6e 20 22 75 22 |ous-revi|sion "u"|
|00000840| 20 73 63 2d 72 65 76 65 | 72 74 2d 66 69 6c 65 20 | sc-reve|rt-file |
|00000850| 22 64 22 20 73 63 2d 6c | 69 73 74 2d 72 65 67 69 |"d" sc-l|ist-regi|
|00000860| 73 74 65 72 65 64 2d 66 | 69 6c 65 73 20 22 04 22 |stered-f|iles "."|
|00000870| 20 73 63 2d 75 70 64 61 | 74 65 2d 64 69 72 65 63 | sc-upda|te-direc|
|00000880| 74 6f 72 79 20 22 12 22 | 20 73 63 2d 72 65 6e 61 |tory "."| sc-rena|
|00000890| 6d 65 2d 66 69 6c 65 5d | 20 34 29 0a 23 40 37 32 |me-file]| 4).#@72|
|000008a0| 20 4e 61 6d 65 20 6f 66 | 20 74 68 65 20 73 6f 75 | Name of| the sou|
|000008b0| 72 63 65 20 63 6f 6e 74 | 72 6f 6c 20 73 79 73 74 |rce cont|rol syst|
|000008c0| 65 6d 20 75 73 65 64 2e | 20 20 49 73 20 64 69 73 |em used.| Is dis|
|000008d0| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 20 6d 6f |played i|n the mo|
|000008e0| 64 65 6c 69 6e 65 2e 1f | 0a 28 64 65 66 76 61 72 |deline..|.(defvar|
|000008f0| 20 73 63 2d 67 65 6e 65 | 72 69 63 2d 6e 61 6d 65 | sc-gene|ric-name|
|00000900| 20 22 22 20 28 23 24 20 | 2e 20 32 32 30 39 29 29 | "" (#$ |. 2209))|
|00000910| 0a 23 40 34 32 20 52 65 | 76 69 73 69 6f 6e 20 6e |.#@42 Re|vision n|
|00000920| 75 6d 62 65 72 20 74 6f | 20 73 68 6f 77 20 69 6e |umber to| show in|
|00000930| 20 74 68 65 20 6d 6f 64 | 65 20 6c 69 6e 65 1f 0a | the mod|e line..|
|00000940| 28 64 65 66 76 61 72 20 | 73 63 2d 6d 6f 64 65 2d |(defvar |sc-mode-|
|00000950| 6c 69 6e 65 2d 73 74 72 | 69 6e 67 20 6e 69 6c 20 |line-str|ing nil |
|00000960| 28 23 24 20 2e 20 32 33 | 32 36 29 29 0a 23 40 33 |(#$ . 23|26)).#@3|
|00000970| 33 20 42 75 66 66 65 72 | 20 66 6f 72 20 65 6e 74 |3 Buffer| for ent|
|00000980| 65 72 69 6e 67 20 6c 6f | 67 20 6d 65 73 73 61 67 |ering lo|g messag|
|00000990| 65 1f 0a 28 64 65 66 76 | 61 72 20 73 63 2d 67 65 |e..(defv|ar sc-ge|
|000009a0| 6e 65 72 69 63 2d 6c 6f | 67 2d 62 75 66 20 6e 69 |neric-lo|g-buf ni|
|000009b0| 6c 20 28 23 24 20 2e 20 | 32 34 31 38 29 29 0a 23 |l (#$ . |2418)).#|
|000009c0| 40 35 39 20 41 64 64 69 | 74 69 6f 6e 61 6c 20 6b |@59 Addi|tional k|
|000009d0| 65 79 62 69 6e 64 69 6e | 67 73 20 75 73 65 64 20 |eybindin|gs used |
|000009e0| 77 68 65 6e 20 65 6e 74 | 65 72 69 6e 67 20 74 68 |when ent|ering th|
|000009f0| 65 20 6c 6f 67 20 6d 65 | 73 73 61 67 65 1f 0a 28 |e log me|ssage..(|
|00000a00| 64 65 66 76 61 72 20 73 | 63 2d 6c 6f 67 2d 65 6e |defvar s|c-log-en|
|00000a10| 74 72 79 2d 6b 65 79 6d | 61 70 20 6e 69 6c 20 28 |try-keym|ap nil (|
|00000a20| 23 24 20 2e 20 32 35 30 | 30 29 29 0a 23 40 36 36 |#$ . 250|0)).#@66|
|00000a30| 20 44 6f 65 73 20 74 68 | 65 20 53 43 20 73 79 73 | Does th|e SC sys|
|00000a40| 74 65 6d 20 61 6c 6c 6f | 77 20 75 73 65 72 73 20 |tem allo|w users |
|00000a50| 74 6f 20 70 6c 61 79 20 | 64 69 72 65 63 74 6c 79 |to play |directly|
|00000a60| 20 77 69 74 68 20 64 69 | 72 65 63 74 6f 72 69 65 | with di|rectorie|
|00000a70| 73 1f 0a 28 64 65 66 76 | 61 72 20 73 63 2d 63 61 |s..(defv|ar sc-ca|
|00000a80| 6e 2d 68 61 63 6b 2d 64 | 69 72 20 6e 69 6c 20 28 |n-hack-d|ir nil (|
|00000a90| 23 24 20 2e 20 32 36 30 | 39 29 29 0a 23 40 36 32 |#$ . 260|9)).#@62|
|00000aa0| 20 50 72 65 66 69 78 65 | 73 20 6b 6e 6f 77 6e 20 | Prefixe|s known |
|00000ab0| 74 6f 20 74 68 65 20 73 | 79 73 74 65 6d 20 74 6f |to the s|ystem to|
|00000ac0| 20 62 65 20 4d 46 53 20 | 2e 2e 2e 20 69 67 6e 6f | be MFS |... igno|
|00000ad0| 72 65 20 61 6c 6c 20 6f | 74 68 65 72 73 1f 0a 28 |re all o|thers..(|
|00000ae0| 64 65 66 76 61 72 20 73 | 63 2d 63 63 61 73 65 2d |defvar s|c-ccase-|
|00000af0| 6d 66 73 2d 70 72 65 66 | 69 78 65 73 20 6e 69 6c |mfs-pref|ixes nil|
|00000b00| 20 28 23 24 20 2e 20 32 | 37 32 31 29 29 0a 28 64 | (#$ . 2|721)).(d|
|00000b10| 65 66 61 6c 69 61 73 20 | 27 73 63 2d 63 68 6d 6f |efalias |'sc-chmo|
|00000b20| 64 20 27 28 6d 61 63 72 | 6f 20 2e 20 23 5b 28 70 |d '(macr|o . #[(p|
|00000b30| 65 72 6d 73 20 66 69 6c | 65 29 20 22 c0 c1 c2 89 |erms fil|e) "....|
|00000b40| 89 0b 0c af 07 87 22 20 | 5b 63 61 6c 6c 2d 70 72 |......" |[call-pr|
|00000b50| 6f 63 65 73 73 20 22 63 | 68 6d 6f 64 22 20 6e 69 |ocess "c|hmod" ni|
|00000b60| 6c 20 70 65 72 6d 73 20 | 66 69 6c 65 5d 20 37 5d |l perms |file] 7]|
|00000b70| 29 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 65 72 |)).(defa|lias 'er|
|00000b80| 72 6f 72 2d 6f 63 63 75 | 72 72 65 64 20 27 28 6d |ror-occu|rred '(m|
|00000b90| 61 63 72 6f 20 2e 20 23 | 5b 28 26 72 65 73 74 20 |acro . #|[(&rest |
|00000ba0| 62 6f 64 79 29 20 22 c0 | c1 c2 c3 0c c5 5c 22 42 |body) ".|.....\"B|
|00000bb0| c6 46 87 22 20 5b 63 6f | 6e 64 69 74 69 6f 6e 2d |.F." [co|ndition-|
|00000bc0| 63 61 73 65 20 6e 69 6c | 20 70 72 6f 67 6e 20 61 |case nil| progn a|
|00000bd0| 70 70 65 6e 64 20 62 6f | 64 79 20 28 6e 69 6c 29 |ppend bo|dy (nil)|
|00000be0| 20 28 65 72 72 6f 72 20 | 74 29 5d 20 36 5d 29 29 | (error |t)] 6]))|
|00000bf0| 0a 23 40 36 33 36 20 44 | 6f 20 74 68 65 20 6e 65 |.#@636 D|o the ne|
|00000c00| 78 74 20 6c 6f 67 69 63 | 61 6c 20 73 6f 75 72 63 |xt logic|al sourc|
|00000c10| 65 2d 63 6f 6e 74 72 6f | 6c 20 6f 70 65 72 61 74 |e-contro|l operat|
|00000c20| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 66 69 6c 65 20 |ion on t|he file |
|00000c30| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |in the c|urrent b|
|00000c40| 75 66 66 65 72 2e 0a 54 | 68 65 20 63 75 72 72 65 |uffer..T|he curre|
|00000c50| 6e 74 20 73 75 62 64 69 | 72 65 63 74 6f 72 79 20 |nt subdi|rectory |
|00000c60| 6d 75 73 74 20 62 65 20 | 75 6e 64 65 72 20 73 6f |must be |under so|
|00000c70| 75 72 63 65 20 63 6f 6e | 74 72 6f 6c 2e 0a 20 20 |urce con|trol.. |
|00000c80| 20 49 66 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 | If the |file is |
|00000c90| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 72 65 67 69 |not alre|ady regi|
|00000ca0| 73 74 65 72 65 64 20 77 | 69 74 68 20 74 68 65 20 |stered w|ith the |
|00000cb0| 73 6f 75 72 63 65 20 63 | 6f 6e 74 72 6f 6c 2c 20 |source c|ontrol, |
|00000cc0| 74 68 69 73 20 72 65 67 | 69 73 74 65 72 73 20 69 |this reg|isters i|
|00000cd0| 74 20 0a 61 6e 64 20 63 | 68 65 63 6b 73 20 69 74 |t .and c|hecks it|
|00000ce0| 20 6f 75 74 2e 0a 20 20 | 20 49 66 20 74 68 65 20 | out.. | If the |
|00000cf0| 66 69 6c 65 20 69 73 20 | 72 65 67 69 73 74 65 72 |file is |register|
|00000d00| 65 64 20 61 6e 64 20 6e | 6f 74 20 6c 6f 63 6b 65 |ed and n|ot locke|
|00000d10| 64 20 62 79 20 61 6e 79 | 6f 6e 65 2c 20 74 68 69 |d by any|one, thi|
|00000d20| 73 20 63 68 65 63 6b 73 | 20 69 74 20 6f 75 74 2e |s checks| it out.|
|00000d30| 0a 20 20 20 49 66 20 74 | 68 65 20 66 69 6c 65 20 |. If t|he file |
|00000d40| 69 73 20 72 65 67 69 73 | 74 65 72 65 64 20 61 6e |is regis|tered an|
|00000d50| 64 20 6c 6f 63 6b 65 64 | 20 62 79 20 74 68 65 20 |d locked| by the |
|00000d60| 63 61 6c 6c 69 6e 67 20 | 75 73 65 72 2c 20 74 68 |calling |user, th|
|00000d70| 69 73 20 70 6f 70 73 20 | 75 70 20 61 0a 62 75 66 |is pops |up a.buf|
|00000d80| 66 65 72 20 66 6f 72 20 | 63 72 65 61 74 69 6f 6e |fer for |creation|
|00000d90| 20 6f 66 20 61 20 6c 6f | 67 20 6d 65 73 73 61 67 | of a lo|g messag|
|00000da0| 65 2c 20 74 68 65 6e 20 | 63 68 65 63 6b 73 20 74 |e, then |checks t|
|00000db0| 68 65 20 66 69 6c 65 20 | 69 6e 2e 0a 41 20 72 65 |he file |in..A re|
|00000dc0| 61 64 2d 6f 6e 6c 79 20 | 63 6f 70 79 20 6f 66 20 |ad-only |copy of |
|00000dd0| 74 68 65 20 63 68 61 6e | 67 65 64 20 66 69 6c 65 |the chan|ged file|
|00000de0| 20 69 73 20 6c 65 66 74 | 20 69 6e 20 70 6c 61 63 | is left| in plac|
|00000df0| 65 20 61 66 74 65 72 77 | 61 72 64 73 2e 0a 20 20 |e afterw|ards.. |
|00000e00| 20 49 66 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 | If the |file is |
|00000e10| 72 65 67 69 73 74 65 72 | 65 64 20 61 6e 64 20 6c |register|ed and l|
|00000e20| 6f 63 6b 65 64 20 62 79 | 20 73 6f 6d 65 6f 6e 65 |ocked by| someone|
|00000e30| 20 65 6c 73 65 2c 20 61 | 6e 20 65 72 72 6f 72 20 | else, a|n error |
|00000e40| 6d 65 73 73 61 67 65 20 | 69 73 0a 72 65 74 75 72 |message |is.retur|
|00000e50| 6e 65 64 20 69 6e 64 69 | 63 61 74 69 6e 67 20 77 |ned indi|cating w|
|00000e60| 68 6f 20 68 61 73 20 6c | 6f 63 6b 65 64 20 69 74 |ho has l|ocked it|
|00000e70| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 63 |...(defa|lias 'sc|
|00000e80| 2d 6e 65 78 74 2d 6f 70 | 65 72 61 74 69 6f 6e 20 |-next-op|eration |
|00000e90| 23 5b 28 76 65 72 62 6f | 73 65 29 20 22 08 ac 86 |#[(verbo|se) "...|
|00000ea0| c1 c2 c3 20 5c 22 88 c4 | 1d 08 1e 06 c7 0e 06 21 |... \"..|.......!|
|00000eb0| 1e 08 c9 ca cb 0e 0c 5c | 22 21 1e 0d 0e 08 ce 61 |.......\|"!.....a|
|00000ec0| ab 86 c1 cf c3 20 5c 22 | 88 0e 08 ac 8a d0 0e 11 |..... \"|........|
|00000ed0| 21 88 c4 89 44 16 08 0e | 08 40 ac 8f d2 0e 06 d3 |!...D...|.@......|
|00000ee0| 5c 22 88 d4 c4 d3 5c 22 | 88 d5 20 aa e0 0e 0c d6 |\"....\"|.. .....|
|00000ef0| 6b ac 90 0e 08 40 d7 20 | 6b ac 88 c1 d8 0e 08 40 |k....@. |k......@|
|00000f00| 5c 22 aa ca d9 20 ab 90 | 0e 1a ac 89 db ca dc c3 |\"... ..|........|
|00000f10| 20 5c 22 21 ab 83 dd 20 | 88 0e 08 41 40 15 0e 11 | \"!... |...A@...|
|00000f20| ab 90 0e 1a ac 88 db ca | de 0d 5c 22 21 ab 84 df |........|..\"!...|
|00000f30| e0 21 15 e1 20 1e 5c 22 | e3 8b ad 94 d9 20 ab 85 |.!.. .\"|..... ..|
|00000f40| c1 e4 21 aa 8b d4 c4 d3 | 5c 22 88 d5 20 88 e5 e6 |..!.....|\".. ...|
|00000f50| 21 29 2c 87 22 20 5b 62 | 75 66 66 65 72 2d 66 69 |!),." [b|uffer-fi|
|00000f60| 6c 65 2d 6e 61 6d 65 20 | 65 72 72 6f 72 20 22 54 |le-name |error "T|
|00000f70| 68 65 72 65 20 69 73 20 | 6e 6f 20 66 69 6c 65 20 |here is |no file |
|00000f80| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00000f90| 62 75 66 66 65 72 20 25 | 73 22 20 62 75 66 66 65 |buffer %|s" buffe|
|00000fa0| 72 2d 6e 61 6d 65 20 6e | 69 6c 20 72 65 76 69 73 |r-name n|il revis|
|00000fb0| 69 6f 6e 20 66 69 6c 65 | 20 73 63 2d 6c 6f 63 6b |ion file| sc-lock|
|00000fc0| 2d 69 6e 66 6f 20 6c 6f | 63 6b 2d 69 6e 66 6f 20 |-info lo|ck-info |
|00000fd0| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|00000fe0| 65 20 66 6f 72 6d 61 74 | 20 22 2a 25 73 2d 4c 6f |e format| "*%s-Lo|
|00000ff0| 67 2a 22 20 73 63 2d 67 | 65 6e 65 72 69 63 2d 6e |g*" sc-g|eneric-n|
|00001000| 61 6d 65 20 73 63 2d 67 | 65 6e 65 72 69 63 2d 6c |ame sc-g|eneric-l|
|00001010| 6f 67 2d 62 75 66 20 6e | 61 20 22 54 68 65 20 66 |og-buf n|a "The f|
|00001020| 69 6c 65 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ile asso|ciated w|
|00001030| 69 74 68 20 62 75 66 66 | 65 72 20 25 73 20 69 73 |ith buff|er %s is|
|00001040| 20 6e 6f 74 20 72 65 67 | 69 73 74 65 72 65 64 22 | not reg|istered"|
|00001050| 20 73 63 2d 72 65 67 69 | 73 74 65 72 2d 66 69 6c | sc-regi|ster-fil|
|00001060| 65 20 76 65 72 62 6f 73 | 65 20 73 63 2d 63 68 65 |e verbos|e sc-che|
|00001070| 63 6b 2d 6f 75 74 20 74 | 20 72 65 76 65 72 74 2d |ck-out t| revert-|
|00001080| 62 75 66 66 65 72 20 73 | 63 2d 6d 6f 64 65 2d 6c |buffer s|c-mode-l|
|00001090| 69 6e 65 20 22 43 43 61 | 73 65 22 20 75 73 65 72 |ine "CCa|se" user|
|000010a0| 2d 6c 6f 67 69 6e 2d 6e | 61 6d 65 20 22 53 6f 72 |-login-n|ame "Sor|
|000010b0| 72 79 2c 20 25 73 20 68 | 61 73 20 74 68 61 74 20 |ry, %s h|as that |
|000010c0| 66 69 6c 65 20 6c 6f 63 | 6b 65 64 2e 22 20 62 75 |file loc|ked." bu|
|000010d0| 66 66 65 72 2d 6d 6f 64 | 69 66 69 65 64 2d 70 20 |ffer-mod|ified-p |
|000010e0| 73 63 2d 6d 6f 64 65 2d | 65 78 70 65 72 74 20 79 |sc-mode-|expert y|
|000010f0| 2d 6f 72 2d 6e 2d 70 20 | 22 25 73 20 68 61 73 20 |-or-n-p |"%s has |
|00001100| 62 65 65 6e 20 6d 6f 64 | 69 66 69 65 64 2e 20 57 |been mod|ified. W|
|00001110| 72 69 74 65 20 69 74 20 | 6f 75 74 3f 20 22 20 73 |rite it |out? " s|
|00001120| 61 76 65 2d 62 75 66 66 | 65 72 20 22 72 65 76 69 |ave-buff|er "revi|
|00001130| 73 69 6f 6e 3a 20 25 73 | 20 20 43 68 61 6e 67 65 |sion: %s| Change|
|00001140| 20 72 65 76 69 73 69 6f | 6e 20 6c 65 76 65 6c 3f | revisio|n level?|
|00001150| 20 22 20 72 65 61 64 2d | 73 74 72 69 6e 67 20 22 | " read-|string "|
|00001160| 4e 65 77 20 72 65 76 69 | 73 69 6f 6e 20 6c 65 76 |New revi|sion lev|
|00001170| 65 6c 3a 20 22 20 73 63 | 2d 74 65 6d 70 2d 62 75 |el: " sc|-temp-bu|
|00001180| 66 66 65 72 20 62 75 66 | 66 65 72 20 28 28 62 79 |ffer buf|fer ((by|
|00001190| 74 65 2d 63 6f 64 65 20 | 22 c0 09 21 88 c2 20 88 |te-code |"..!.. .|
|000011a0| c3 c4 21 88 c5 20 88 c6 | c7 21 88 c4 c8 c9 8f 3f |..!.. ..|.!.....?|
|000011b0| ad 85 c4 ca cb 8f 3f c4 | 16 0c cd 09 21 88 87 22 |......?.|....!.."|
|000011c0| 20 5b 70 6f 70 2d 74 6f | 2d 62 75 66 66 65 72 20 | [pop-to|-buffer |
|000011d0| 62 75 66 66 65 72 20 65 | 72 61 73 65 2d 62 75 66 |buffer e|rase-buf|
|000011e0| 66 65 72 20 73 65 74 2d | 62 75 66 66 65 72 2d 6d |fer set-|buffer-m|
|000011f0| 6f 64 69 66 69 65 64 2d | 70 20 6e 69 6c 20 73 63 |odified-|p nil sc|
|00001200| 2d 6c 6f 67 2d 65 6e 74 | 72 79 2d 6d 6f 64 65 20 |-log-ent|ry-mode |
|00001210| 6d 65 73 73 61 67 65 20 | 22 45 6e 74 65 72 20 6c |message |"Enter l|
|00001220| 6f 67 20 6d 65 73 73 61 | 67 65 2e 20 54 79 70 65 |og messa|ge. Type|
|00001230| 20 43 2d 63 20 43 2d 63 | 20 77 68 65 6e 20 64 6f | C-c C-c| when do|
|00001240| 6e 65 2c 20 43 2d 63 20 | 3f 20 66 6f 72 20 68 65 |ne, C-c |? for he|
|00001250| 6c 70 2e 22 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |lp." (by|te-code |
|00001260| 22 c0 20 88 c1 87 22 20 | 5b 72 65 63 75 72 73 69 |". ..." |[recursi|
|00001270| 76 65 2d 65 64 69 74 20 | 6e 69 6c 5d 20 31 29 20 |ve-edit |nil] 1) |
|00001280| 28 28 65 72 72 6f 72 20 | 74 29 29 20 28 62 79 74 |((error |t)) (byt|
|00001290| 65 2d 63 6f 64 65 20 22 | c0 09 5c 6e c3 20 23 88 |e-code "|..\n. #.|
|000012a0| c4 87 22 20 5b 73 63 2d | 63 68 65 63 6b 2d 69 6e |.." [sc-|check-in|
|000012b0| 20 66 69 6c 65 20 72 65 | 76 69 73 69 6f 6e 20 62 | file re|vision b|
|000012c0| 75 66 66 65 72 2d 73 74 | 72 69 6e 67 20 6e 69 6c |uffer-st|ring nil|
|000012d0| 5d 20 34 29 20 28 28 65 | 72 72 6f 72 20 74 29 29 |] 4) ((e|rror t))|
|000012e0| 20 62 75 66 66 65 72 2d | 66 69 6c 65 2d 6e 61 6d | buffer-|file-nam|
|000012f0| 65 20 62 75 72 79 2d 62 | 75 66 66 65 72 5d 20 33 |e bury-b|uffer] 3|
|00001300| 29 29 20 22 43 68 65 63 | 6b 65 64 2d 69 6e 20 76 |)) "Chec|ked-in v|
|00001310| 65 72 73 69 6f 6e 20 6f | 66 20 66 69 6c 65 20 64 |ersion o|f file d|
|00001320| 6f 65 73 20 6e 6f 74 20 | 6d 61 74 63 68 20 62 75 |oes not |match bu|
|00001330| 66 66 65 72 21 22 20 72 | 75 6e 2d 68 6f 6f 6b 73 |ffer!" r|un-hooks|
|00001340| 20 73 63 2d 63 68 65 63 | 6b 2d 69 6e 2d 6f 6b 5d | sc-chec|k-in-ok]|
|00001350| 20 34 20 28 23 24 20 2e | 20 33 30 36 33 29 20 22 | 4 (#$ .| 3063) "|
|00001360| 50 22 5d 29 0a 23 40 35 | 35 20 49 6e 73 65 72 74 |P"]).#@5|5 Insert|
|00001370| 20 74 68 65 20 6c 6f 67 | 20 6d 65 73 73 61 67 65 | the log| message|
|00001380| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 20 63 68 65 | of the |last che|
|00001390| 63 6b 20 69 6e 20 61 74 | 20 70 6f 69 6e 74 2e 1f |ck in at| point..|
|000013a0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 63 2d 69 |.(defali|as 'sc-i|
|000013b0| 6e 73 65 72 74 2d 6c 61 | 73 74 2d 6c 6f 67 20 23 |nsert-la|st-log #|
|000013c0| 5b 6e 69 6c 20 22 c0 09 | 21 87 22 20 5b 69 6e 73 |[nil "..|!." [ins|
|000013d0| 65 72 74 2d 62 75 66 66 | 65 72 20 73 63 2d 67 65 |ert-buff|er sc-ge|
|000013e0| 6e 65 72 69 63 2d 6c 6f | 67 2d 62 75 66 5d 20 32 |neric-lo|g-buf] 2|
|000013f0| 20 28 23 24 20 2e 20 34 | 39 37 30 29 20 6e 69 6c | (#$ . 4|970) nil|
|00001400| 5d 29 0a 23 40 34 32 20 | 41 62 6f 72 74 20 61 20 |]).#@42 |Abort a |
|00001410| 73 6f 75 72 63 65 20 63 | 6f 6e 74 72 6f 6c 20 63 |source c|ontrol c|
|00001420| 68 65 63 6b 2d 69 6e 20 | 63 6f 6d 6d 61 6e 64 2e |heck-in |command.|
|00001430| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 2d |..(defal|ias 'sc-|
|00001440| 61 62 6f 72 74 2d 63 68 | 65 63 6b 2d 69 6e 20 23 |abort-ch|eck-in #|
|00001450| 5b 6e 69 6c 20 22 08 ac | 85 c1 c2 21 ad 85 c3 20 |[nil "..|...!... |
|00001460| 88 c4 20 87 22 20 5b 73 | 63 2d 6d 6f 64 65 2d 65 |.. ." [s|c-mode-e|
|00001470| 78 70 65 72 74 20 79 2d | 6f 72 2d 6e 2d 70 20 22 |xpert y-|or-n-p "|
|00001480| 52 65 61 6c 6c 79 20 41 | 62 6f 72 74 20 43 68 65 |Really A|bort Che|
|00001490| 63 6b 2d 69 6e 3f 20 22 | 20 64 65 6c 65 74 65 2d |ck-in? "| delete-|
|000014a0| 77 69 6e 64 6f 77 20 61 | 62 6f 72 74 2d 72 65 63 |window a|bort-rec|
|000014b0| 75 72 73 69 76 65 2d 65 | 64 69 74 5d 20 32 20 28 |ursive-e|dit] 2 (|
|000014c0| 23 24 20 2e 20 35 31 32 | 38 29 20 6e 69 6c 5d 29 |#$ . 512|8) nil])|
|000014d0| 0a 23 40 37 34 20 50 72 | 6f 63 65 65 64 20 77 69 |.#@74 Pr|oceed wi|
|000014e0| 74 68 20 63 68 65 63 6b | 69 6e 20 77 69 74 68 20 |th check|in with |
|000014f0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00001500| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00001510| 65 72 20 61 73 20 6d 65 | 73 73 61 67 65 2e 1f 0a |er as me|ssage...|
|00001520| 28 64 65 66 61 6c 69 61 | 73 20 27 73 63 2d 6c 6f |(defalia|s 'sc-lo|
|00001530| 67 2d 65 78 69 74 20 23 | 5b 6e 69 6c 20 22 c0 20 |g-exit #|[nil ". |
|00001540| 09 57 ab 8c c2 0b 65 64 | 23 88 c4 20 88 c5 20 87 |.W....ed|#.. .. .|
|00001550| 09 62 88 c6 c7 09 60 23 | 87 22 20 5b 62 75 66 66 |.b....`#|." [buff|
|00001560| 65 72 2d 73 69 7a 65 20 | 73 63 2d 6d 61 78 2d 6c |er-size |sc-max-l|
|00001570| 6f 67 2d 73 69 7a 65 20 | 63 6f 70 79 2d 74 6f 2d |og-size |copy-to-|
|00001580| 62 75 66 66 65 72 20 73 | 63 2d 67 65 6e 65 72 69 |buffer s|c-generi|
|00001590| 63 2d 6c 6f 67 2d 62 75 | 66 20 65 78 69 74 2d 72 |c-log-bu|f exit-r|
|000015a0| 65 63 75 72 73 69 76 65 | 2d 65 64 69 74 20 64 65 |ecursive|-edit de|
|000015b0| 6c 65 74 65 2d 77 69 6e | 64 6f 77 20 65 72 72 6f |lete-win|dow erro|
|000015c0| 72 20 22 4c 6f 67 20 6d | 75 73 74 20 62 65 20 6c |r "Log m|ust be l|
|000015d0| 65 73 73 20 74 68 61 6e | 20 25 64 20 63 68 61 72 |ess than| %d char|
|000015e0| 61 63 74 65 72 73 2e 20 | 50 6f 69 6e 74 20 69 73 |acters. |Point is|
|000015f0| 20 6e 6f 77 20 61 74 20 | 63 68 61 72 20 25 64 2e | now at |char %d.|
|00001600| 22 5d 20 34 20 28 23 24 | 20 2e 20 35 33 33 34 29 |"] 4 (#$| . 5334)|
|00001610| 20 6e 69 6c 5d 29 0a 23 | 40 31 32 39 20 43 6f 6d | nil]).#|@129 Com|
|00001620| 70 61 72 65 20 74 68 65 | 20 76 65 72 73 69 6f 6e |pare the| version|
|00001630| 20 62 65 69 6e 67 20 65 | 64 69 74 65 64 20 77 69 | being e|dited wi|
|00001640| 74 68 20 74 68 65 20 6c | 61 73 74 20 63 68 65 63 |th the l|ast chec|
|00001650| 6b 65 64 2d 69 6e 20 72 | 65 76 69 73 69 6f 6e 2e |ked-in r|evision.|
|00001660| 0a 57 69 74 68 20 61 20 | 70 72 65 66 69 78 20 61 |.With a |prefix a|
|00001670| 72 67 75 6d 65 6e 74 20 | 70 72 6f 6d 70 74 20 66 |rgument |prompt f|
|00001680| 6f 72 20 72 65 76 69 73 | 69 6f 6e 20 74 6f 20 63 |or revis|ion to c|
|00001690| 6f 6d 70 61 72 65 20 77 | 69 74 68 2e 1f 0a 28 64 |ompare w|ith...(d|
|000016a0| 65 66 61 6c 69 61 73 20 | 27 73 63 2d 73 68 6f 77 |efalias |'sc-show|
|000016b0| 2d 63 68 61 6e 67 65 73 | 20 23 5b 28 61 72 67 29 |-changes| #[(arg)|
|000016c0| 20 22 c0 20 ab 8f 09 ac | 89 c2 c3 c4 c5 20 5c 22 | ". ....|..... \"|
|000016d0| 21 ab 83 c6 20 88 0e 07 | ad 83 c8 c9 21 1e 5c 6e |!... ...|....!.\n|
|000016e0| 0e 0b 1e 0c cd 0e 0c 21 | 1e 0e cf 0e 0c 0e 5c 6e |.......!|......\n|
|000016f0| 5c 22 1e 10 d1 20 1e 12 | d3 1e 14 8a 0e 12 71 88 |\"... ..|......q.|
|00001700| d5 20 88 d6 0e 0c 21 16 | 17 d8 d9 0e 1a 40 d3 db |. ....!.|.....@..|
|00001710| d3 dc 0e 1a 41 0e 10 43 | 0e 0c 43 23 26 06 16 14 |....A..C|..C#&...|
|00001720| 29 0e 14 dd 61 ac 8f 0e | 14 de 61 ac 89 df 0e 12 |)...a...|..a.....|
|00001730| 21 88 e0 e1 21 88 e2 0e | 10 21 88 8a 0e 12 71 88 |!...!...|.!....q.|
|00001740| 65 62 88 65 64 6b ab 8b | c3 e3 cd 0e 0c 21 5c 22 |eb.edk..|.....!\"|
|00001750| 63 88 aa a0 e4 0e 0c e5 | b1 03 88 e6 63 88 e7 e8 |c.......|....c...|
|00001760| 0e 1a 5c 22 88 0e 0e e9 | 0e 5c 6e ae 81 ea eb ec |..\"....|.\n.....|
|00001770| 0e 0e ed b1 07 88 29 df | 0e 12 21 2e 06 87 22 20 |......).|..!..." |
|00001780| 5b 62 75 66 66 65 72 2d | 6d 6f 64 69 66 69 65 64 |[buffer-|modified|
|00001790| 2d 70 20 73 63 2d 6d 6f | 64 65 2d 65 78 70 65 72 |-p sc-mo|de-exper|
|000017a0| 74 20 79 2d 6f 72 2d 6e | 2d 70 20 66 6f 72 6d 61 |t y-or-n|-p forma|
|000017b0| 74 20 22 25 73 20 68 61 | 73 20 62 65 65 6e 20 6d |t "%s ha|s been m|
|000017c0| 6f 64 69 66 69 65 64 2e | 20 57 72 69 74 65 20 69 |odified.| Write i|
|000017d0| 74 20 6f 75 74 3f 20 22 | 20 62 75 66 66 65 72 2d |t out? "| buffer-|
|000017e0| 6e 61 6d 65 20 73 61 76 | 65 2d 62 75 66 66 65 72 |name sav|e-buffer|
|000017f0| 20 61 72 67 20 72 65 61 | 64 2d 73 74 72 69 6e 67 | arg rea|d-string|
|00001800| 20 22 52 65 76 69 73 69 | 6f 6e 20 74 6f 20 63 6f | "Revisi|on to co|
|00001810| 6d 70 61 72 65 20 61 67 | 61 69 6e 73 74 3a 20 22 |mpare ag|ainst: "|
|00001820| 20 72 65 76 69 73 69 6f | 6e 20 62 75 66 66 65 72 | revisio|n buffer|
|00001830| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 66 69 6c 65 20 |-file-na|me file |
|00001840| 66 69 6c 65 2d 6e 61 6d | 65 2d 6e 6f 6e 64 69 72 |file-nam|e-nondir|
|00001850| 65 63 74 6f 72 79 20 6e | 61 6d 65 20 73 63 2d 67 |ectory n|ame sc-g|
|00001860| 65 74 2d 76 65 72 73 69 | 6f 6e 2d 69 6e 2d 74 65 |et-versi|on-in-te|
|00001870| 6d 70 2d 66 69 6c 65 20 | 6f 6c 64 20 73 63 2d 74 |mp-file |old sc-t|
|00001880| 65 6d 70 2d 62 75 66 66 | 65 72 20 62 75 66 66 65 |emp-buff|er buffe|
|00001890| 72 20 6e 69 6c 20 73 74 | 61 74 75 73 20 65 72 61 |r nil st|atus era|
|000018a0| 73 65 2d 62 75 66 66 65 | 72 20 66 69 6c 65 2d 6e |se-buffe|r file-n|
|000018b0| 61 6d 65 2d 64 69 72 65 | 63 74 6f 72 79 20 64 65 |ame-dire|ctory de|
|000018c0| 66 61 75 6c 74 2d 64 69 | 72 65 63 74 6f 72 79 20 |fault-di|rectory |
|000018d0| 61 70 70 6c 79 20 63 61 | 6c 6c 2d 70 72 6f 63 65 |apply ca|ll-proce|
|000018e0| 73 73 20 73 63 2d 64 69 | 66 66 2d 63 6f 6d 6d 61 |ss sc-di|ff-comma|
|000018f0| 6e 64 20 74 20 61 70 70 | 65 6e 64 20 30 20 31 20 |nd t app|end 0 1 |
|00001900| 64 69 73 70 6c 61 79 2d | 62 75 66 66 65 72 20 65 |display-|buffer e|
|00001910| 72 72 6f 72 20 22 64 69 | 66 66 20 46 41 49 4c 45 |rror "di|ff FAILE|
|00001920| 44 22 20 64 65 6c 65 74 | 65 2d 66 69 6c 65 20 22 |D" delet|e-file "|
|00001930| 4e 6f 20 63 68 61 6e 67 | 65 73 20 74 6f 20 25 73 |No chang|es to %s|
|00001940| 20 73 69 6e 63 65 20 6c | 61 73 74 20 75 70 64 61 | since l|ast upda|
|00001950| 74 65 2e 22 20 22 3d 3d | 3d 3d 20 44 69 66 66 73 |te." "==|== Diffs|
|00001960| 20 66 6f 72 20 22 20 22 | 5c 6e 22 20 22 3d 3d 3d | for " "|\n" "===|
|00001970| 3d 20 22 20 6d 61 70 63 | 61 72 20 23 5b 28 69 29 |= " mapc|ar #[(i)|
|00001980| 20 22 08 c1 b1 02 87 22 | 20 5b 69 20 22 20 22 5d | "....."| [i " "]|
|00001990| 20 32 5d 20 22 3c 22 20 | 22 63 75 72 72 65 6e 74 | 2] "<" |"current|
|000019a0| 22 20 22 3e 22 20 22 20 | 22 20 22 5c 6e 5c 6e 22 |" ">" " |" "\n\n"|
|000019b0| 5d 20 31 30 20 28 23 24 | 20 2e 20 35 36 36 31 29 |] 10 (#$| . 5661)|
|000019c0| 20 22 50 22 5d 29 0a 23 | 40 34 30 20 50 72 6f 6d | "P"]).#|@40 Prom|
|000019d0| 70 74 20 66 6f 72 20 61 | 20 72 65 76 69 73 69 6f |pt for a| revisio|
|000019e0| 6e 20 74 6f 20 64 69 66 | 66 20 61 67 61 69 6e 73 |n to dif|f agains|
|000019f0| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |t...(def|alias 's|
|00001a00| 63 2d 73 68 6f 77 2d 72 | 65 76 69 73 69 6f 6e 2d |c-show-r|evision-|
|00001a10| 63 68 61 6e 67 65 73 20 | 23 5b 6e 69 6c 20 22 c0 |changes |#[nil ".|
|00001a20| c1 21 87 22 20 5b 73 63 | 2d 73 68 6f 77 2d 63 68 |.!." [sc|-show-ch|
|00001a30| 61 6e 67 65 73 20 34 5d | 20 32 20 28 23 24 20 2e |anges 4]| 2 (#$ .|
|00001a40| 20 36 36 30 34 29 20 6e | 69 6c 5d 29 0a 23 40 36 | 6604) n|il]).#@6|
|00001a50| 37 20 46 6f 72 20 46 49 | 4c 45 2c 20 72 65 70 6f |7 For FI|LE, repo|
|00001a60| 72 74 20 64 69 66 66 73 | 20 62 65 74 77 65 65 6e |rt diffs| between|
|00001a70| 20 74 77 6f 20 72 65 76 | 69 73 69 6f 6e 73 20 52 | two rev|isions R|
|00001a80| 45 4c 31 20 61 6e 64 20 | 52 45 4c 32 20 6f 66 20 |EL1 and |REL2 of |
|00001a90| 69 74 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |it...(de|falias '|
|00001aa0| 73 63 2d 76 65 72 73 69 | 6f 6e 2d 64 69 66 66 2d |sc-versi|on-diff-|
|00001ab0| 66 69 6c 65 20 23 5b 28 | 66 69 6c 65 20 72 65 6c |file #[(|file rel|
|00001ac0| 31 20 72 65 6c 32 29 20 | 22 08 c1 98 ab 82 c2 10 |1 rel2) |".......|
|00001ad0| 0b c1 98 ab 82 c2 13 c4 | 20 89 1d 71 88 c6 20 88 |........| ..q.. .|
|00001ae0| c7 0e 08 08 5c 22 0b ab | 87 c7 0e 08 0b 5c 22 aa |....\"..|.....\".|
|00001af0| 82 0e 08 1e 09 89 1e 5c | 6e ab 9d 0e 09 ab 99 c2 |.......\|n.......|
|00001b00| 8e cb cc 0e 0d 40 c2 ce | 89 cf 0e 0d 41 0e 5c 6e |.....@..|....A.\n|
|00001b10| 43 0e 09 43 23 26 06 88 | 29 c2 d0 d1 8f 88 0b ab |C..C#&..|).......|
|00001b20| 85 c2 d2 d3 8f 88 d4 c2 | 21 88 65 62 88 65 64 6b |........|!.eb.edk|
|00001b30| ab 8b d5 d6 d7 0e 08 08 | 0b 24 21 aa 83 d8 0d 21 |........|.$!....!|
|00001b40| 2b 87 22 20 5b 72 65 6c | 31 20 22 22 20 6e 69 6c |+." [rel|1 "" nil|
|00001b50| 20 72 65 6c 32 20 73 63 | 2d 74 65 6d 70 2d 62 75 | rel2 sc|-temp-bu|
|00001b60| 66 66 65 72 20 62 75 66 | 66 65 72 20 65 72 61 73 |ffer buf|fer eras|
|00001b70| 65 2d 62 75 66 66 65 72 | 20 73 63 2d 67 65 74 2d |e-buffer| sc-get-|
|00001b80| 76 65 72 73 69 6f 6e 2d | 69 6e 2d 74 65 6d 70 2d |version-|in-temp-|
|00001b90| 66 69 6c 65 20 66 69 6c | 65 20 76 32 20 76 31 20 |file fil|e v2 v1 |
|00001ba0| 61 70 70 6c 79 20 63 61 | 6c 6c 2d 70 72 6f 63 65 |apply ca|ll-proce|
|00001bb0| 73 73 20 73 63 2d 64 69 | 66 66 2d 63 6f 6d 6d 61 |ss sc-di|ff-comma|
|00001bc0| 6e 64 20 74 20 61 70 70 | 65 6e 64 20 28 64 65 6c |nd t app|end (del|
|00001bd0| 65 74 65 2d 66 69 6c 65 | 20 76 31 29 20 28 28 65 |ete-file| v1) ((e|
|00001be0| 72 72 6f 72 29 29 20 28 | 64 65 6c 65 74 65 2d 66 |rror)) (|delete-f|
|00001bf0| 69 6c 65 20 76 32 29 20 | 28 28 65 72 72 6f 72 29 |ile v2) |((error)|
|00001c00| 29 20 73 65 74 2d 62 75 | 66 66 65 72 2d 6d 6f 64 |) set-bu|ffer-mod|
|00001c10| 69 66 69 65 64 2d 70 20 | 6d 65 73 73 61 67 65 20 |ified-p |message |
|00001c20| 66 6f 72 6d 61 74 20 22 | 4e 6f 20 63 68 61 6e 67 |format "|No chang|
|00001c30| 65 73 20 74 6f 20 25 73 | 20 62 65 74 77 65 65 6e |es to %s| between|
|00001c40| 20 25 73 20 61 6e 64 20 | 25 73 2e 22 20 64 69 73 | %s and |%s." dis|
|00001c50| 70 6c 61 79 2d 62 75 66 | 66 65 72 5d 20 31 31 20 |play-buf|fer] 11 |
|00001c60| 28 23 24 20 2e 20 36 37 | 33 38 29 20 22 66 46 69 |(#$ . 67|38) "fFi|
|00001c70| 6c 65 3a 20 5c 6e 73 4f | 6c 64 65 72 20 76 65 72 |le: \nsO|lder ver|
|00001c80| 73 69 6f 6e 3a 20 5c 6e | 73 4e 65 77 65 72 20 76 |sion: \n|sNewer v|
|00001c90| 65 72 73 69 6f 6e 3a 20 | 22 5d 29 0a 23 40 34 36 |ersion: |"]).#@46|
|00001ca0| 20 4c 69 73 74 20 74 68 | 65 20 65 64 69 74 20 68 | List th|e edit h|
|00001cb0| 69 73 74 6f 72 79 20 6f | 66 20 74 68 65 20 63 75 |istory o|f the cu|
|00001cc0| 72 72 65 6e 74 20 62 75 | 66 66 65 72 2e 1f 0a 28 |rrent bu|ffer...(|
|00001cd0| 64 65 66 61 6c 69 61 73 | 20 27 73 63 2d 73 68 6f |defalias| 'sc-sho|
|00001ce0| 77 2d 68 69 73 74 6f 72 | 79 20 23 5b 6e 69 6c 20 |w-histor|y #[nil |
|00001cf0| 22 08 89 19 ac 86 c2 c3 | c4 20 5c 22 88 c5 09 21 |".......|. \"...!|
|00001d00| ac 84 c2 c6 21 88 c7 20 | 1e 08 8a 0e 08 71 88 c9 |....!.. |.....q..|
|00001d10| 20 88 ca 09 21 88 65 62 | 88 29 cb 0e 08 21 2a 87 | ...!.eb|.)...!*.|
|00001d20| 22 20 5b 62 75 66 66 65 | 72 2d 66 69 6c 65 2d 6e |" [buffe|r-file-n|
|00001d30| 61 6d 65 20 66 69 6c 65 | 20 65 72 72 6f 72 20 22 |ame file| error "|
|00001d40| 54 68 65 72 65 20 69 73 | 20 6e 6f 20 66 69 6c 65 |There is| no file|
|00001d50| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00001d60| 20 62 75 66 66 65 72 20 | 25 73 22 20 62 75 66 66 | buffer |%s" buff|
|00001d70| 65 72 2d 6e 61 6d 65 20 | 73 63 2d 6c 6f 63 6b 2d |er-name |sc-lock-|
|00001d80| 69 6e 66 6f 20 22 54 68 | 65 20 66 69 6c 65 20 69 |info "Th|e file i|
|00001d90| 73 20 6e 6f 74 20 72 65 | 67 69 73 74 65 72 65 64 |s not re|gistered|
|00001da0| 20 69 6e 20 74 68 65 20 | 73 6f 75 72 63 65 20 63 | in the |source c|
|00001db0| 6f 6e 74 72 6f 6c 20 73 | 79 73 74 65 6d 22 20 73 |ontrol s|ystem" s|
|00001dc0| 63 2d 74 65 6d 70 2d 62 | 75 66 66 65 72 20 62 75 |c-temp-b|uffer bu|
|00001dd0| 66 66 65 72 20 65 72 61 | 73 65 2d 62 75 66 66 65 |ffer era|se-buffe|
|00001de0| 72 20 73 63 2d 68 69 73 | 74 6f 72 79 20 64 69 73 |r sc-his|tory dis|
|00001df0| 70 6c 61 79 2d 62 75 66 | 66 65 72 5d 20 34 20 28 |play-buf|fer] 4 (|
|00001e00| 23 24 20 2e 20 37 33 32 | 39 29 20 6e 69 6c 5d 29 |#$ . 732|9) nil])|
|00001e10| 0a 23 40 34 36 20 53 68 | 6f 77 20 61 20 70 72 65 |.#@46 Sh|ow a pre|
|00001e20| 76 69 6f 75 73 20 72 65 | 76 69 73 69 6f 6e 20 6f |vious re|vision o|
|00001e30| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 66 69 |f the cu|rrent fi|
|00001e40| 6c 65 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |le..(def|alias 's|
|00001e50| 63 2d 76 69 73 69 74 2d | 70 72 65 76 69 6f 75 73 |c-visit-|previous|
|00001e60| 2d 72 65 76 69 73 69 6f | 6e 20 23 5b 28 72 65 76 |-revisio|n #[(rev|
|00001e70| 69 73 69 6f 6e 29 20 22 | 08 89 19 ac 86 c2 c3 c4 |ision) "|........|
|00001e80| 20 5c 22 88 c5 09 0e 06 | 5c 22 c7 09 21 c8 0e 09 | \".....|\"..!...|
|00001e90| ca 0e 06 cb b0 06 1c 1e | 0c cd ce 0c 21 21 88 cf |........|....!!..|
|00001ea0| 20 88 d0 0e 0c 21 88 09 | 10 d1 20 88 d2 10 d3 d2 | ....!..|.. .....|
|00001eb0| 21 88 d4 20 88 d5 0e 0c | 21 2b 87 22 20 5b 62 75 |!.. ....|!+." [bu|
|00001ec0| 66 66 65 72 2d 66 69 6c | 65 2d 6e 61 6d 65 20 66 |ffer-fil|e-name f|
|00001ed0| 69 6c 65 20 65 72 72 6f | 72 20 22 54 68 65 72 65 |ile erro|r "There|
|00001ee0| 20 69 73 20 6e 6f 20 66 | 69 6c 65 20 61 73 73 6f | is no f|ile asso|
|00001ef0| 63 69 61 74 65 64 20 77 | 69 74 68 20 62 75 66 66 |ciated w|ith buff|
|00001f00| 65 72 20 25 73 22 20 62 | 75 66 66 65 72 2d 6e 61 |er %s" b|uffer-na|
|00001f10| 6d 65 20 73 63 2d 67 65 | 74 2d 76 65 72 73 69 6f |me sc-ge|t-versio|
|00001f20| 6e 2d 69 6e 2d 74 65 6d | 70 2d 66 69 6c 65 20 72 |n-in-tem|p-file r|
|00001f30| 65 76 69 73 69 6f 6e 20 | 66 69 6c 65 2d 6e 61 6d |evision |file-nam|
|00001f40| 65 2d 6e 6f 6e 64 69 72 | 65 63 74 6f 72 79 20 22 |e-nondir|ectory "|
|00001f50| 3c 22 20 73 63 2d 67 65 | 6e 65 72 69 63 2d 6e 61 |<" sc-ge|neric-na|
|00001f60| 6d 65 20 22 20 22 20 22 | 3e 22 20 6f 74 68 65 72 |me " " "|>" other|
|00001f70| 2d 66 69 6c 65 20 70 6f | 70 2d 74 6f 2d 62 75 66 |-file po|p-to-buf|
|00001f80| 66 65 72 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |fer get-|buffer-c|
|00001f90| 72 65 61 74 65 20 65 72 | 61 73 65 2d 62 75 66 66 |reate er|ase-buff|
|00001fa0| 65 72 20 69 6e 73 65 72 | 74 2d 66 69 6c 65 20 6e |er inser|t-file n|
|00001fb0| 6f 72 6d 61 6c 2d 6d 6f | 64 65 20 6e 69 6c 20 73 |ormal-mo|de nil s|
|00001fc0| 65 74 2d 62 75 66 66 65 | 72 2d 6d 6f 64 69 66 69 |et-buffe|r-modifi|
|00001fd0| 65 64 2d 70 20 74 6f 67 | 67 6c 65 2d 72 65 61 64 |ed-p tog|gle-read|
|00001fe0| 2d 6f 6e 6c 79 20 64 65 | 6c 65 74 65 2d 66 69 6c |-only de|lete-fil|
|00001ff0| 65 5d 20 38 20 28 23 24 | 20 2e 20 37 37 30 32 29 |e] 8 (#$| . 7702)|
|00002000| 20 22 73 53 68 6f 77 20 | 70 72 65 76 69 6f 75 73 | "sShow |previous|
|00002010| 20 72 65 76 69 73 69 6f | 6e 20 6e 75 6d 62 65 72 | revisio|n number|
|00002020| 3a 20 22 5d 29 0a 23 40 | 36 36 20 52 65 76 65 72 |: "]).#@|66 Rever|
|00002030| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 62 75 |t the cu|rrent bu|
|00002040| 66 66 65 72 27 73 20 66 | 69 6c 65 20 62 61 63 6b |ffer's f|ile back|
|00002050| 20 74 6f 20 74 68 65 20 | 6c 61 73 74 20 73 61 76 | to the |last sav|
|00002060| 65 64 20 76 65 72 73 69 | 6f 6e 2e 1f 0a 28 64 65 |ed versi|on...(de|
|00002070| 66 61 6c 69 61 73 20 27 | 73 63 2d 72 65 76 65 72 |falias '|sc-rever|
|00002080| 74 2d 66 69 6c 65 20 23 | 5b 6e 69 6c 20 22 08 19 |t-file #|[nil "..|
|00002090| c2 c3 c4 09 5c 22 21 ad | 8b c5 09 21 88 c6 c7 c8 |....\"!.|...!....|
|000020a0| 5c 22 88 c9 20 29 87 22 | 20 5b 62 75 66 66 65 72 |\".. )."| [buffer|
|000020b0| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 66 69 6c 65 20 |-file-na|me file |
|000020c0| 79 2d 6f 72 2d 6e 2d 70 | 20 66 6f 72 6d 61 74 20 |y-or-n-p| format |
|000020d0| 22 52 65 76 65 72 74 20 | 66 69 6c 65 20 25 73 20 |"Revert |file %s |
|000020e0| 74 6f 20 6c 61 73 74 20 | 63 68 65 63 6b 65 64 2d |to last |checked-|
|000020f0| 69 6e 20 72 65 76 69 73 | 69 6f 6e 3f 22 20 73 63 |in revis|ion?" sc|
|00002100| 2d 72 65 76 65 72 74 20 | 72 65 76 65 72 74 2d 62 |-revert |revert-b|
|00002110| 75 66 66 65 72 20 6e 69 | 6c 20 74 20 73 63 2d 6d |uffer ni|l t sc-m|
|00002120| 6f 64 65 2d 6c 69 6e 65 | 5d 20 34 20 28 23 24 20 |ode-line|] 4 (#$ |
|00002130| 2e 20 38 32 33 35 29 20 | 6e 69 6c 5d 29 0a 23 40 |. 8235) |nil]).#@|
|00002140| 31 32 34 20 4c 69 73 74 | 20 61 6c 6c 20 66 69 6c |124 List| all fil|
|00002150| 65 73 20 63 75 72 72 65 | 6e 74 6c 79 20 6c 6f 63 |es curre|ntly loc|
|00002160| 6b 65 64 20 75 6e 64 65 | 72 20 74 68 65 20 72 65 |ked unde|r the re|
|00002170| 76 69 73 69 6f 6e 20 63 | 6f 6e 74 72 6f 6c 20 73 |vision c|ontrol s|
|00002180| 79 73 74 65 6d 2e 0a 57 | 69 74 68 20 70 72 65 66 |ystem..W|ith pref|
|00002190| 69 78 20 61 72 67 20 6c | 69 73 74 20 6f 6e 6c 79 |ix arg l|ist only|
|000021a0| 20 74 68 65 20 66 69 6c | 65 73 20 6c 6f 63 6b 65 | the fil|es locke|
|000021b0| 64 20 62 79 20 74 68 65 | 20 75 73 65 72 2e 1f 0a |d by the| user...|
|000021c0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 63 2d 6c 69 |(defalia|s 'sc-li|
|000021d0| 73 74 2d 61 6c 6c 2d 6c | 6f 63 6b 65 64 2d 66 69 |st-all-l|ocked-fi|
|000021e0| 6c 65 73 20 23 5b 28 61 | 72 67 29 20 22 08 ad 82 |les #[(a|rg) "...|
|000021f0| c1 20 1a c3 c4 5c 6e 5c | 22 1d 8a 0d 71 88 65 62 |. ...\n\|"...q.eb|
|00002200| 88 65 64 55 ab 85 c6 63 | 88 aa 83 c7 63 88 5c 6e |.edU...c|....c.\n|
|00002210| ab 86 c8 5c 6e c9 b1 03 | 88 ca 0e 0b cc b1 03 88 |...\n...|........|
|00002220| 29 cd 0d 21 2a 87 22 20 | 5b 61 72 67 20 75 73 65 |)..!*." |[arg use|
|00002230| 72 2d 6c 6f 67 69 6e 2d | 6e 61 6d 65 20 6c 6f 63 |r-login-|name loc|
|00002240| 6b 65 72 20 73 63 2d 74 | 72 65 65 2d 77 61 6c 6b |ker sc-t|ree-walk|
|00002250| 20 73 63 2d 6c 69 73 74 | 2d 66 69 6c 65 2d 69 66 | sc-list|-file-if|
|00002260| 2d 6c 6f 63 6b 65 64 20 | 62 75 66 66 65 72 20 22 |-locked |buffer "|
|00002270| 4e 6f 20 66 69 6c 65 73 | 20 6c 6f 63 6b 65 64 20 |No files| locked |
|00002280| 22 20 22 46 69 6c 65 73 | 20 6c 6f 63 6b 65 64 20 |" "Files| locked |
|00002290| 22 20 22 62 79 20 22 20 | 22 20 22 20 22 69 6e 20 |" "by " |" " "in |
|000022a0| 22 20 64 65 66 61 75 6c | 74 2d 64 69 72 65 63 74 |" defaul|t-direct|
|000022b0| 6f 72 79 20 22 5c 6e 5c | 6e 22 20 64 69 73 70 6c |ory "\n\|n" displ|
|000022c0| 61 79 2d 62 75 66 66 65 | 72 5d 20 33 20 28 23 24 |ay-buffe|r] 3 (#$|
|000022d0| 20 2e 20 38 35 31 36 29 | 20 22 50 22 5d 29 0a 23 | . 8516)| "P"]).#|
|000022e0| 40 33 39 20 4c 69 73 74 | 20 61 6c 6c 20 66 69 6c |@39 List| all fil|
|000022f0| 65 73 20 63 75 72 72 65 | 6e 74 6c 79 20 6c 6f 63 |es curre|ntly loc|
|00002300| 6b 65 64 20 62 79 20 6d | 65 1f 0a 28 64 65 66 61 |ked by m|e..(defa|
|00002310| 6c 69 61 73 20 27 73 63 | 2d 6c 69 73 74 2d 6c 6f |lias 'sc|-list-lo|
|00002320| 63 6b 65 64 2d 66 69 6c | 65 73 20 23 5b 6e 69 6c |cked-fil|es #[nil|
|00002330| 20 22 c0 c1 21 87 22 20 | 5b 73 63 2d 6c 69 73 74 | "..!." |[sc-list|
|00002340| 2d 61 6c 6c 2d 6c 6f 63 | 6b 65 64 2d 66 69 6c 65 |-all-loc|ked-file|
|00002350| 73 20 34 5d 20 32 20 28 | 23 24 20 2e 20 38 39 33 |s 4] 2 (|#$ . 893|
|00002360| 32 29 20 6e 69 6c 5d 29 | 0a 23 40 37 32 20 4c 69 |2) nil])|.#@72 Li|
|00002370| 73 74 20 61 6c 6c 20 66 | 69 6c 65 73 20 63 75 72 |st all f|iles cur|
|00002380| 72 65 6e 74 6c 79 20 72 | 65 67 69 73 74 65 72 65 |rently r|egistere|
|00002390| 64 20 75 6e 64 65 72 20 | 74 68 65 20 72 65 76 69 |d under |the revi|
|000023a0| 73 69 6f 6e 20 63 6f 6e | 74 72 6f 6c 20 73 79 73 |sion con|trol sys|
|000023b0| 74 65 6d 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |tem...(d|efalias |
|000023c0| 27 73 63 2d 6c 69 73 74 | 2d 72 65 67 69 73 74 65 |'sc-list|-registe|
|000023d0| 72 65 64 2d 66 69 6c 65 | 73 20 23 5b 6e 69 6c 20 |red-file|s #[nil |
|000023e0| 22 c0 c1 21 1a 8a 5c 6e | 71 88 65 64 55 ab 8a c3 |"..!..\n|q.edU...|
|000023f0| 0c c5 0e 06 b1 04 88 aa | 8c 65 62 88 c7 0c c5 0e |........|.eb.....|
|00002400| 06 c8 b1 05 88 29 c9 5c | 6e 21 29 87 22 20 5b 73 |.....).\|n!)." [s|
|00002410| 63 2d 74 72 65 65 2d 77 | 61 6c 6b 20 73 63 2d 6c |c-tree-w|alk sc-l|
|00002420| 69 73 74 2d 66 69 6c 65 | 20 62 75 66 66 65 72 20 |ist-file| buffer |
|00002430| 22 4e 6f 20 66 69 6c 65 | 73 20 72 65 67 69 73 74 |"No file|s regist|
|00002440| 65 72 65 64 20 69 6e 20 | 22 20 73 63 2d 67 65 6e |ered in |" sc-gen|
|00002450| 65 72 69 63 2d 6e 61 6d | 65 20 22 20 69 6e 20 22 |eric-nam|e " in "|
|00002460| 20 64 65 66 61 75 6c 74 | 2d 64 69 72 65 63 74 6f | default|-directo|
|00002470| 72 79 20 22 46 69 6c 65 | 73 20 72 65 67 69 73 74 |ry "File|s regist|
|00002480| 65 72 65 64 20 69 6e 20 | 22 20 22 5c 6e 5c 6e 22 |ered in |" "\n\n"|
|00002490| 20 64 69 73 70 6c 61 79 | 2d 62 75 66 66 65 72 5d | display|-buffer]|
|000024a0| 20 35 20 28 23 24 20 2e | 20 39 30 37 30 29 20 6e | 5 (#$ .| 9070) n|
|000024b0| 69 6c 5d 29 0a 23 40 37 | 33 20 55 70 64 61 74 65 |il]).#@7|3 Update|
|000024c0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |s the cu|rrent di|
|000024d0| 72 65 63 74 6f 72 79 20 | 62 79 20 67 65 74 74 69 |rectory |by getti|
|000024e0| 6e 67 20 74 68 65 20 6c | 61 74 65 73 74 20 63 6f |ng the l|atest co|
|000024f0| 70 69 65 73 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |pies of |the file|
|00002500| 73 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 63 |s..(defa|lias 'sc|
|00002510| 2d 75 70 64 61 74 65 2d | 64 69 72 65 63 74 6f 72 |-update-|director|
|00002520| 79 20 23 5b 6e 69 6c 20 | 22 c0 20 88 c1 c2 21 1b |y #[nil |". ...!.|
|00002530| 8a 0b 71 88 65 62 88 65 | 64 55 ab 88 c4 0d c6 b1 |..q.eb.e|dU......|
|00002540| 03 88 aa 86 c7 0d c6 b1 | 03 88 29 c8 0b 21 29 87 |........|..)..!).|
|00002550| 22 20 5b 73 61 76 65 2d | 73 6f 6d 65 2d 62 75 66 |" [save-|some-buf|
|00002560| 66 65 72 73 20 73 63 2d | 74 72 65 65 2d 77 61 6c |fers sc-|tree-wal|
|00002570| 6b 20 73 63 2d 75 70 64 | 61 74 65 2d 66 69 6c 65 |k sc-upd|ate-file|
|00002580| 20 62 75 66 66 65 72 20 | 22 4e 6f 20 66 69 6c 65 | buffer |"No file|
|00002590| 73 20 6e 65 65 64 65 64 | 20 74 6f 20 62 65 20 75 |s needed| to be u|
|000025a0| 70 64 61 74 65 64 20 69 | 6e 20 22 20 64 65 66 61 |pdated i|n " defa|
|000025b0| 75 6c 74 2d 64 69 72 65 | 63 74 6f 72 79 20 22 5c |ult-dire|ctory "\|
|000025c0| 6e 5c 6e 22 20 22 46 69 | 6c 65 73 20 75 70 64 61 |n\n" "Fi|les upda|
|000025d0| 74 65 64 20 69 6e 20 22 | 20 64 69 73 70 6c 61 79 |ted in "| display|
|000025e0| 2d 62 75 66 66 65 72 5d | 20 33 20 28 23 24 20 2e |-buffer]| 3 (#$ .|
|000025f0| 20 39 34 30 32 29 20 6e | 69 6c 5d 29 0a 23 40 31 | 9402) n|il]).#@1|
|00002600| 33 33 20 52 65 67 69 73 | 74 65 72 20 74 68 65 20 |33 Regis|ter the |
|00002610| 66 69 6c 65 20 76 69 73 | 69 74 65 64 20 62 79 20 |file vis|ited by |
|00002620| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00002630| 65 72 20 69 6e 74 6f 20 | 73 6f 75 72 63 65 20 63 |er into |source c|
|00002640| 6f 6e 74 72 6f 6c 2e 0a | 50 72 65 66 69 78 20 61 |ontrol..|Prefix a|
|00002650| 72 67 75 6d 65 6e 74 20 | 72 65 67 69 73 74 65 72 |rgument |register|
|00002660| 20 69 74 20 75 6e 64 65 | 72 20 61 6e 20 65 78 70 | it unde|r an exp|
|00002670| 6c 69 63 69 74 20 72 65 | 76 69 73 69 6f 6e 20 6e |licit re|vision n|
|00002680| 75 6d 62 65 72 2e 1f 0a | 28 64 65 66 61 6c 69 61 |umber...|(defalia|
|00002690| 73 20 27 73 63 2d 72 65 | 67 69 73 74 65 72 2d 66 |s 'sc-re|gister-f|
|000026a0| 69 6c 65 20 23 5b 28 76 | 65 72 62 6f 73 65 29 20 |ile #[(v|erbose) |
|000026b0| 22 08 89 19 ac 86 c2 c3 | c4 20 5c 22 88 c5 09 21 |".......|. \"...!|
|000026c0| c6 1e 07 89 1e 08 ab 86 | c2 c9 0e 5c 6e 5c 22 88 |........|...\n\".|
|000026d0| cb 20 ab 90 0e 0c ac 89 | cd ce cf c4 20 5c 22 21 |. ......|.... \"!|
|000026e0| ab 83 d0 20 88 0e 11 ab | 85 d2 d3 21 16 07 d4 09 |... ....|...!....|
|000026f0| 0e 07 5c 22 88 d5 c6 d6 | 5c 22 88 d7 20 2b 87 22 |..\"....|\".. +."|
|00002700| 20 5b 62 75 66 66 65 72 | 2d 66 69 6c 65 2d 6e 61 | [buffer|-file-na|
|00002710| 6d 65 20 66 69 6c 65 20 | 65 72 72 6f 72 20 22 54 |me file |error "T|
|00002720| 68 65 72 65 20 69 73 20 | 6e 6f 20 66 69 6c 65 20 |here is |no file |
|00002730| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00002740| 62 75 66 66 65 72 20 25 | 73 22 20 62 75 66 66 65 |buffer %|s" buffe|
|00002750| 72 2d 6e 61 6d 65 20 73 | 63 2d 6c 6f 63 6b 2d 69 |r-name s|c-lock-i|
|00002760| 6e 66 6f 20 6e 69 6c 20 | 72 65 76 69 73 69 6f 6e |nfo nil |revision|
|00002770| 20 6c 6f 63 6b 2d 69 6e | 66 6f 20 22 54 68 69 73 | lock-in|fo "This|
|00002780| 20 66 69 6c 65 20 69 73 | 20 61 6c 72 65 61 64 79 | file is| already|
|00002790| 20 72 65 67 69 73 74 65 | 72 65 64 20 69 6e 74 6f | registe|red into|
|000027a0| 20 25 73 22 20 73 63 2d | 67 65 6e 65 72 69 63 2d | %s" sc-|generic-|
|000027b0| 6e 61 6d 65 20 62 75 66 | 66 65 72 2d 6d 6f 64 69 |name buf|fer-modi|
|000027c0| 66 69 65 64 2d 70 20 73 | 63 2d 6d 6f 64 65 2d 65 |fied-p s|c-mode-e|
|000027d0| 78 70 65 72 74 20 79 2d | 6f 72 2d 6e 2d 70 20 66 |xpert y-|or-n-p f|
|000027e0| 6f 72 6d 61 74 20 22 25 | 73 20 68 61 73 20 62 65 |ormat "%|s has be|
|000027f0| 65 6e 20 6d 6f 64 69 66 | 69 65 64 2e 20 57 72 69 |en modif|ied. Wri|
|00002800| 74 65 20 69 74 20 6f 75 | 74 3f 20 22 20 73 61 76 |te it ou|t? " sav|
|00002810| 65 2d 62 75 66 66 65 72 | 20 76 65 72 62 6f 73 65 |e-buffer| verbose|
|00002820| 20 72 65 61 64 2d 73 74 | 72 69 6e 67 20 22 49 6e | read-st|ring "In|
|00002830| 69 74 69 61 6c 20 52 65 | 76 69 73 69 6f 6e 20 4e |itial Re|vision N|
|00002840| 75 6d 62 65 72 3a 20 22 | 20 73 63 2d 72 65 67 69 |umber: "| sc-regi|
|00002850| 73 74 65 72 20 72 65 76 | 65 72 74 2d 62 75 66 66 |ster rev|ert-buff|
|00002860| 65 72 20 74 20 73 63 2d | 6d 6f 64 65 2d 6c 69 6e |er t sc-|mode-lin|
|00002870| 65 5d 20 35 20 28 23 24 | 20 2e 20 39 37 33 31 29 |e] 5 (#$| . 9731)|
|00002880| 20 22 50 22 5d 29 0a 23 | 40 35 39 20 52 65 6e 61 | "P"]).#|@59 Rena|
|00002890| 6d 65 20 61 20 66 69 6c | 65 2c 20 74 61 6b 69 6e |me a fil|e, takin|
|000028a0| 67 20 69 74 73 20 73 6f | 75 72 63 65 20 63 6f 6e |g its so|urce con|
|000028b0| 74 72 6f 6c 20 61 72 63 | 68 69 76 65 20 77 69 74 |trol arc|hive wit|
|000028c0| 68 20 69 74 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |h it...(|defalias|
|000028d0| 20 27 73 63 2d 72 65 6e | 61 6d 65 2d 66 69 6c 65 | 'sc-ren|ame-file|
|000028e0| 20 23 5b 28 6f 6c 64 20 | 6e 65 77 29 20 22 c0 09 | #[(old |new) "..|
|000028f0| 21 89 1a ab 8b 5c 6e c3 | 20 98 ac 85 c4 c5 5c 6e |!....\n.| .....\n|
|00002900| 5c 22 88 29 0e 06 ab 87 | c7 09 0e 08 c9 23 88 ca |\".)....|.....#..|
|00002910| 09 0e 08 5c 22 87 22 20 | 5b 73 63 2d 6c 6f 63 6b |...\"." |[sc-lock|
|00002920| 69 6e 67 2d 75 73 65 72 | 20 6f 6c 64 20 6f 77 6e |ing-user| old own|
|00002930| 65 72 20 75 73 65 72 2d | 6c 6f 67 69 6e 2d 6e 61 |er user-|login-na|
|00002940| 6d 65 20 65 72 72 6f 72 | 20 22 53 6f 72 72 79 2c |me error| "Sorry,|
|00002950| 20 25 73 20 68 61 73 20 | 74 68 61 74 20 66 69 6c | %s has |that fil|
|00002960| 65 20 63 68 65 63 6b 65 | 64 20 6f 75 74 22 20 73 |e checke|d out" s|
|00002970| 63 2d 63 61 6e 2d 68 61 | 63 6b 2d 64 69 72 20 72 |c-can-ha|ck-dir r|
|00002980| 65 6e 61 6d 65 2d 66 69 | 6c 65 20 6e 65 77 20 74 |ename-fi|le new t|
|00002990| 20 73 63 2d 72 65 6e 61 | 6d 65 5d 20 35 20 28 23 | sc-rena|me] 5 (#|
|000029a0| 24 20 2e 20 31 30 33 38 | 30 29 20 22 66 4f 6c 64 |$ . 1038|0) "fOld|
|000029b0| 20 6e 61 6d 65 3a 20 5c | 6e 46 4e 65 77 20 6e 61 | name: \|nFNew na|
|000029c0| 6d 65 3a 20 22 5d 29 0a | 23 40 38 32 20 52 65 6e |me: "]).|#@82 Ren|
|000029d0| 61 6d 65 20 74 68 65 20 | 66 69 6c 65 20 6f 66 20 |ame the |file of |
|000029e0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|000029f0| 65 72 2c 20 74 61 6b 69 | 6e 67 20 69 74 73 20 73 |er, taki|ng its s|
|00002a00| 6f 75 72 63 65 20 63 6f | 6e 74 72 6f 6c 20 61 72 |ource co|ntrol ar|
|00002a10| 63 68 69 76 65 20 77 69 | 74 68 20 69 74 1f 0a 28 |chive wi|th it..(|
|00002a20| 64 65 66 61 6c 69 61 73 | 20 27 73 63 2d 72 65 6e |defalias| 'sc-ren|
|00002a30| 61 6d 65 2d 74 68 69 73 | 2d 66 69 6c 65 20 23 5b |ame-this|-file #[|
|00002a40| 28 6e 65 77 29 20 22 c0 | 20 ab 8c c1 c2 c3 c4 20 |(new) ".| ...... |
|00002a50| 5c 22 21 ab 83 c5 20 88 | c6 0e 07 0e 08 5c 22 88 |\"!... .|.....\".|
|00002a60| 70 c9 0e 08 21 1e 5c 6e | 1e 0b cc cd 20 0e 5c 6e |p...!.\n|.... .\n|
|00002a70| 5c 22 88 ce 70 21 88 cf | 0e 0b 21 2a 87 22 20 5b |\"..p!..|..!*." [|
|00002a80| 62 75 66 66 65 72 2d 6d | 6f 64 69 66 69 65 64 2d |buffer-m|odified-|
|00002a90| 70 20 79 2d 6f 72 2d 6e | 2d 70 20 66 6f 72 6d 61 |p y-or-n|-p forma|
|00002aa0| 74 20 22 25 73 20 68 61 | 73 20 62 65 65 6e 20 6d |t "%s ha|s been m|
|00002ab0| 6f 64 69 66 69 65 64 2e | 20 57 72 69 74 65 20 69 |odified.| Write i|
|00002ac0| 74 20 6f 75 74 3f 20 22 | 20 62 75 66 66 65 72 2d |t out? "| buffer-|
|00002ad0| 6e 61 6d 65 20 73 61 76 | 65 2d 62 75 66 66 65 72 |name sav|e-buffer|
|00002ae0| 20 73 63 2d 72 65 6e 61 | 6d 65 2d 66 69 6c 65 20 | sc-rena|me-file |
|00002af0| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|00002b00| 20 6e 65 77 20 66 69 6e | 64 2d 66 69 6c 65 2d 6e | new fin|d-file-n|
|00002b10| 6f 73 65 6c 65 63 74 20 | 6e 65 77 2d 62 75 66 66 |oselect |new-buff|
|00002b20| 65 72 20 6f 6c 64 2d 62 | 75 66 66 65 72 20 73 65 |er old-b|uffer se|
|00002b30| 74 2d 77 69 6e 64 6f 77 | 2d 62 75 66 66 65 72 20 |t-window|-buffer |
|00002b40| 73 65 6c 65 63 74 65 64 | 2d 77 69 6e 64 6f 77 20 |selected|-window |
|00002b50| 70 6f 70 2d 74 6f 2d 62 | 75 66 66 65 72 20 62 75 |pop-to-b|uffer bu|
|00002b60| 72 79 2d 62 75 66 66 65 | 72 5d 20 34 20 28 23 24 |ry-buffe|r] 4 (#$|
|00002b70| 20 2e 20 31 30 37 30 31 | 29 20 22 46 4e 65 77 20 | . 10701|) "FNew |
|00002b80| 6e 61 6d 65 3a 20 22 5d | 29 0a 23 40 33 36 20 46 |name: "]|).#@36 F|
|00002b90| 75 6e 63 74 69 6f 6e 20 | 74 6f 20 69 6d 70 6c 65 |unction |to imple|
|00002ba0| 6d 65 6e 74 20 73 63 2d | 6c 6f 63 6b 2d 69 6e 66 |ment sc-|lock-inf|
|00002bb0| 6f 1f 0a 28 64 65 66 76 | 61 72 20 73 63 2d 67 65 |o..(defv|ar sc-ge|
|00002bc0| 6e 65 72 69 63 2d 6c 6f | 63 6b 2d 69 6e 66 6f 20 |neric-lo|ck-info |
|00002bd0| 6e 69 6c 20 28 23 24 20 | 2e 20 31 31 31 35 31 29 |nil (#$ |. 11151)|
|00002be0| 29 0a 23 40 32 34 32 20 | 52 65 74 75 72 6e 20 61 |).#@242 |Return a|
|00002bf0| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 63 75 72 | list of| the cur|
|00002c00| 72 65 6e 74 20 6c 6f 63 | 6b 65 72 20 61 6e 64 20 |rent loc|ker and |
|00002c10| 63 75 72 72 65 6e 74 20 | 6c 6f 63 6b 65 64 20 72 |current |locked r|
|00002c20| 65 76 69 73 69 6f 6e 20 | 66 6f 72 20 46 49 4c 45 |evision |for FILE|
|00002c30| 2e 0a 52 65 74 75 72 6e | 73 20 4e 49 4c 20 69 66 |..Return|s NIL if|
|00002c40| 20 46 49 4c 45 20 69 73 | 20 6e 6f 74 20 72 65 67 | FILE is| not reg|
|00002c50| 69 73 74 65 72 65 64 20 | 69 6e 20 74 68 65 20 73 |istered |in the s|
|00002c60| 6f 75 72 63 65 20 63 6f | 6e 74 72 6f 6c 20 73 79 |ource co|ntrol sy|
|00002c70| 73 74 65 6d 2e 0a 52 65 | 74 75 72 6e 20 28 4e 49 |stem..Re|turn (NI|
|00002c80| 4c 20 4e 49 4c 29 20 69 | 66 20 46 49 4c 45 20 69 |L NIL) i|f FILE i|
|00002c90| 73 20 72 65 67 69 73 74 | 65 72 65 64 20 62 75 74 |s regist|ered but|
|00002ca0| 20 6e 6f 74 20 6c 6f 63 | 6b 65 64 2e 0a 52 65 74 | not loc|ked..Ret|
|00002cb0| 75 72 6e 20 28 6c 6f 63 | 6b 65 72 20 72 65 76 69 |urn (loc|ker revi|
|00002cc0| 73 69 6f 6e 29 20 69 66 | 20 66 69 6c 65 20 69 73 |sion) if| file is|
|00002cd0| 20 6c 6f 63 6b 65 64 2e | 1f 0a 28 64 65 66 61 6c | locked.|..(defal|
|00002ce0| 69 61 73 20 27 73 63 2d | 6c 6f 63 6b 2d 69 6e 66 |ias 'sc-|lock-inf|
|00002cf0| 6f 20 23 5b 28 66 69 6c | 65 29 20 22 08 09 21 87 |o #[(fil|e) "..!.|
|00002d00| 22 20 5b 73 63 2d 67 65 | 6e 65 72 69 63 2d 6c 6f |" [sc-ge|neric-lo|
|00002d10| 63 6b 2d 69 6e 66 6f 20 | 66 69 6c 65 5d 20 32 20 |ck-info |file] 2 |
|00002d20| 28 23 24 20 2e 20 31 31 | 32 34 30 29 5d 29 0a 23 |(#$ . 11|240)]).#|
|00002d30| 40 33 35 20 46 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |@35 Func|tion to |
|00002d40| 69 6d 70 6c 65 6d 65 6e | 74 20 73 63 2d 72 65 67 |implemen|t sc-reg|
|00002d50| 69 73 74 65 72 1f 0a 28 | 64 65 66 76 61 72 20 73 |ister..(|defvar s|
|00002d60| 63 2d 67 65 6e 65 72 69 | 63 2d 72 65 67 69 73 74 |c-generi|c-regist|
|00002d70| 65 72 20 6e 69 6c 20 28 | 23 24 20 2e 20 31 31 35 |er nil (|#$ . 115|
|00002d80| 37 32 29 29 0a 23 40 36 | 38 20 52 65 67 69 73 74 |72)).#@6|8 Regist|
|00002d90| 65 72 20 46 49 4c 45 20 | 75 6e 64 65 72 20 73 6f |er FILE |under so|
|00002da0| 75 72 63 65 20 63 6f 6e | 74 72 6f 6c 20 77 69 74 |urce con|trol wit|
|00002db0| 68 20 69 6e 69 74 69 61 | 6c 20 72 65 76 69 73 69 |h initia|l revisi|
|00002dc0| 6f 6e 20 52 45 56 49 53 | 49 4f 4e 2e 1f 0a 28 64 |on REVIS|ION...(d|
|00002dd0| 65 66 61 6c 69 61 73 20 | 27 73 63 2d 72 65 67 69 |efalias |'sc-regi|
|00002de0| 73 74 65 72 20 23 5b 28 | 66 69 6c 65 20 72 65 76 |ster #[(|file rev|
|00002df0| 69 73 69 6f 6e 29 20 22 | 08 09 5c 6e 5c 22 87 22 |ision) "|..\n\"."|
|00002e00| 20 5b 73 63 2d 67 65 6e | 65 72 69 63 2d 72 65 67 | [sc-gen|eric-reg|
|00002e10| 69 73 74 65 72 20 66 69 | 6c 65 20 72 65 76 69 73 |ister fi|le revis|
|00002e20| 69 6f 6e 5d 20 33 20 28 | 23 24 20 2e 20 31 31 36 |ion] 3 (|#$ . 116|
|00002e30| 35 38 29 5d 29 0a 23 40 | 33 36 20 46 75 6e 63 74 |58)]).#@|36 Funct|
|00002e40| 69 6f 6e 20 74 6f 20 69 | 6d 70 6c 65 6d 65 6e 74 |ion to i|mplement|
|00002e50| 20 73 63 2d 63 68 65 63 | 6b 2d 6f 75 74 1f 0a 28 | sc-chec|k-out..(|
|00002e60| 64 65 66 76 61 72 20 73 | 63 2d 67 65 6e 65 72 69 |defvar s|c-generi|
|00002e70| 63 2d 63 68 65 63 6b 2d | 6f 75 74 20 6e 69 6c 20 |c-check-|out nil |
|00002e80| 28 23 24 20 2e 20 31 31 | 38 33 35 29 29 0a 23 40 |(#$ . 11|835)).#@|
|00002e90| 38 34 20 43 68 65 63 6b | 73 20 6f 75 74 20 74 68 |84 Check|s out th|
|00002ea0| 65 20 6c 61 74 65 73 74 | 20 76 65 72 73 69 6f 6e |e latest| version|
|00002eb0| 20 6f 66 20 46 49 4c 45 | 2e 20 20 0a 49 66 20 4c | of FILE|. .If L|
|00002ec0| 4f 43 4b 50 20 69 73 20 | 6e 6f 74 20 4e 49 4c 2c |OCKP is |not NIL,|
|00002ed0| 20 46 49 4c 45 20 69 73 | 20 61 6c 73 6f 20 6c 6f | FILE is| also lo|
|00002ee0| 63 6b 65 64 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |cked...(|defalias|
|00002ef0| 20 27 73 63 2d 63 68 65 | 63 6b 2d 6f 75 74 20 23 | 'sc-che|ck-out #|
|00002f00| 5b 28 66 69 6c 65 20 6c | 6f 63 6b 70 29 20 22 08 |[(file l|ockp) ".|
|00002f10| 09 5c 6e 5c 22 87 22 20 | 5b 73 63 2d 67 65 6e 65 |.\n\"." |[sc-gene|
|00002f20| 72 69 63 2d 63 68 65 63 | 6b 2d 6f 75 74 20 66 69 |ric-chec|k-out fi|
|00002f30| 6c 65 20 6c 6f 63 6b 70 | 5d 20 33 20 28 23 24 20 |le lockp|] 3 (#$ |
|00002f40| 2e 20 31 31 39 32 33 29 | 5d 29 0a 23 40 33 38 20 |. 11923)|]).#@38 |
|00002f50| 46 75 6e 63 74 69 6f 6e | 20 74 6f 20 69 6d 70 6c |Function| to impl|
|00002f60| 65 6d 65 6e 74 20 73 63 | 2d 67 65 74 2d 76 65 72 |ement sc|-get-ver|
|00002f70| 73 69 6f 6e 1f 0a 28 64 | 65 66 76 61 72 20 73 63 |sion..(d|efvar sc|
|00002f80| 2d 67 65 6e 65 72 69 63 | 2d 67 65 74 2d 76 65 72 |-generic|-get-ver|
|00002f90| 73 69 6f 6e 20 6e 69 6c | 20 28 23 24 20 2e 20 31 |sion nil| (#$ . 1|
|00002fa0| 32 31 31 32 29 29 0a 23 | 40 39 31 20 49 6e 73 65 |2112)).#|@91 Inse|
|00002fb0| 72 74 20 61 20 70 72 65 | 76 69 6f 75 73 20 72 65 |rt a pre|vious re|
|00002fc0| 76 69 73 6f 6e 20 6f 66 | 20 46 49 4c 45 20 69 6e |vison of| FILE in|
|00002fd0| 20 42 55 46 46 45 52 2e | 20 20 0a 52 45 56 49 53 | BUFFER.| .REVIS|
|00002fe0| 49 4f 4e 20 69 73 20 74 | 68 65 20 72 65 76 69 73 |ION is t|he revis|
|00002ff0| 69 6f 6e 20 6e 75 6d 62 | 65 72 20 72 65 71 75 65 |ion numb|er reque|
|00003000| 73 74 65 64 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |sted...(|defalias|
|00003010| 20 27 73 63 2d 67 65 74 | 2d 76 65 72 73 69 6f 6e | 'sc-get|-version|
|00003020| 20 23 5b 28 66 69 6c 65 | 20 62 75 66 66 65 72 20 | #[(file| buffer |
|00003030| 72 65 76 69 73 69 6f 6e | 29 20 22 08 09 5c 6e 0b |revision|) "..\n.|
|00003040| 23 87 22 20 5b 73 63 2d | 67 65 6e 65 72 69 63 2d |#." [sc-|generic-|
|00003050| 67 65 74 2d 76 65 72 73 | 69 6f 6e 20 66 69 6c 65 |get-vers|ion file|
|00003060| 20 62 75 66 66 65 72 20 | 72 65 76 69 73 69 6f 6e | buffer |revision|
|00003070| 5d 20 34 20 28 23 24 20 | 2e 20 31 32 32 30 34 29 |] 4 (#$ |. 12204)|
|00003080| 5d 29 0a 23 40 33 35 20 | 46 75 6e 63 74 69 6f 6e |]).#@35 |Function|
|00003090| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 73 63 | to impl|ement sc|
|000030a0| 2d 63 68 65 63 6b 2d 69 | 6e 1f 0a 28 64 65 66 76 |-check-i|n..(defv|
|000030b0| 61 72 20 73 63 2d 67 65 | 6e 65 72 69 63 2d 63 68 |ar sc-ge|neric-ch|
|000030c0| 65 63 6b 2d 69 6e 20 6e | 69 6c 20 28 23 24 20 2e |eck-in n|il (#$ .|
|000030d0| 20 31 32 34 32 34 29 29 | 0a 23 40 38 33 20 43 68 | 12424))|.#@83 Ch|
|000030e0| 65 63 6b 20 69 6e 20 46 | 49 4c 45 20 77 69 74 68 |eck in F|ILE with|
|000030f0| 20 72 65 76 69 73 69 6f | 6e 20 52 45 56 49 53 49 | revisio|n REVISI|
|00003100| 4f 4e 2e 0a 4d 45 53 53 | 41 47 45 20 69 73 20 61 |ON..MESS|AGE is a|
|00003110| 20 73 74 72 69 6e 67 20 | 64 65 73 63 72 69 62 69 | string |describi|
|00003120| 6e 67 20 74 68 65 20 63 | 68 61 6e 67 65 73 2e 1f |ng the c|hanges..|
|00003130| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 63 2d 63 |.(defali|as 'sc-c|
|00003140| 68 65 63 6b 2d 69 6e 20 | 23 5b 28 66 69 6c 65 20 |heck-in |#[(file |
|00003150| 72 65 76 69 73 69 6f 6e | 20 6d 65 73 73 61 67 65 |revision| message|
|00003160| 29 20 22 08 09 5c 6e 0b | 23 87 22 20 5b 73 63 2d |) "..\n.|#." [sc-|
|00003170| 67 65 6e 65 72 69 63 2d | 63 68 65 63 6b 2d 69 6e |generic-|check-in|
|00003180| 20 66 69 6c 65 20 72 65 | 76 69 73 69 6f 6e 20 6d | file re|vision m|
|00003190| 65 73 73 61 67 65 5d 20 | 34 20 28 23 24 20 2e 20 |essage] |4 (#$ . |
|000031a0| 31 32 35 31 30 29 5d 29 | 0a 23 40 33 34 20 46 75 |12510)])|.#@34 Fu|
|000031b0| 6e 63 74 69 6f 6e 20 74 | 6f 20 69 6d 70 6c 65 6d |nction t|o implem|
|000031c0| 65 6e 74 20 73 63 2d 68 | 69 73 74 6f 72 79 1f 0a |ent sc-h|istory..|
|000031d0| 28 64 65 66 76 61 72 20 | 73 63 2d 67 65 6e 65 72 |(defvar |sc-gener|
|000031e0| 69 63 2d 68 69 73 74 6f | 72 79 20 6e 69 6c 20 28 |ic-histo|ry nil (|
|000031f0| 23 24 20 2e 20 31 32 37 | 31 38 29 29 0a 23 40 35 |#$ . 127|18)).#@5|
|00003200| 36 20 49 6e 73 65 72 74 | 20 74 68 65 20 65 64 69 |6 Insert| the edi|
|00003210| 74 20 68 69 73 74 6f 72 | 79 20 6f 66 20 46 49 4c |t histor|y of FIL|
|00003220| 45 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |E in the| current|
|00003230| 20 62 75 66 66 65 72 2e | 1f 0a 28 64 65 66 61 6c | buffer.|..(defal|
|00003240| 69 61 73 20 27 73 63 2d | 68 69 73 74 6f 72 79 20 |ias 'sc-|history |
|00003250| 23 5b 28 66 69 6c 65 29 | 20 22 08 09 21 87 22 20 |#[(file)| "..!." |
|00003260| 5b 73 63 2d 67 65 6e 65 | 72 69 63 2d 68 69 73 74 |[sc-gene|ric-hist|
|00003270| 6f 72 79 20 66 69 6c 65 | 5d 20 32 20 28 23 24 20 |ory file|] 2 (#$ |
|00003280| 2e 20 31 32 38 30 32 29 | 5d 29 0a 23 40 33 36 20 |. 12802)|]).#@36 |
|00003290| 46 75 6e 63 74 69 6f 6e | 20 74 6f 20 69 6d 70 6c |Function| to impl|
|000032a0| 65 6d 65 6e 74 20 73 63 | 2d 74 72 65 65 2d 6c 69 |ement sc|-tree-li|
|000032b0| 73 74 1f 0a 28 64 65 66 | 76 61 72 20 73 63 2d 67 |st..(def|var sc-g|
|000032c0| 65 6e 65 72 69 63 2d 74 | 72 65 65 2d 6c 69 73 74 |eneric-t|ree-list|
|000032d0| 20 6e 69 6c 20 28 23 24 | 20 2e 20 31 32 39 34 34 | nil (#$| . 12944|
|000032e0| 29 29 0a 23 40 37 38 20 | 4c 69 73 74 20 69 6e 20 |)).#@78 |List in |
|000032f0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 |the curr|ent buff|
|00003300| 65 72 20 74 68 65 20 66 | 69 6c 65 73 20 72 65 67 |er the f|iles reg|
|00003310| 69 73 74 65 72 65 64 20 | 69 6e 20 74 68 65 20 73 |istered |in the s|
|00003320| 6f 75 72 63 65 20 63 6f | 6e 74 72 6f 6c 20 73 79 |ource co|ntrol sy|
|00003330| 73 74 65 6d 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |stem..(d|efalias |
|00003340| 27 73 63 2d 74 72 65 65 | 2d 6c 69 73 74 20 23 5b |'sc-tree|-list #[|
|00003350| 6e 69 6c 20 22 08 20 87 | 22 20 5b 73 63 2d 67 65 |nil ". .|" [sc-ge|
|00003360| 6e 65 72 69 63 2d 74 72 | 65 65 2d 6c 69 73 74 5d |neric-tr|ee-list]|
|00003370| 20 31 20 28 23 24 20 2e | 20 31 33 30 33 32 29 5d | 1 (#$ .| 13032)]|
|00003380| 29 0a 23 40 34 31 20 46 | 75 6e 63 74 69 6f 6e 20 |).#@41 F|unction |
|00003390| 74 6f 20 69 6d 70 6c 65 | 6d 65 6e 74 20 73 63 2d |to imple|ment sc-|
|000033a0| 6e 65 77 2d 72 65 76 69 | 73 69 6f 6e 2d 70 1f 0a |new-revi|sion-p..|
|000033b0| 28 64 65 66 76 61 72 20 | 73 63 2d 67 65 6e 65 72 |(defvar |sc-gener|
|000033c0| 69 63 2d 6e 65 77 2d 72 | 65 76 69 73 69 6f 6e 2d |ic-new-r|evision-|
|000033d0| 70 20 6e 69 6c 20 28 23 | 24 20 2e 20 31 33 31 39 |p nil (#|$ . 1319|
|000033e0| 31 29 29 0a 23 40 37 38 | 20 54 72 75 65 20 69 66 |1)).#@78| True if|
|000033f0| 20 61 20 6e 65 77 20 72 | 65 76 69 73 69 6f 6e 20 | a new r|evision |
|00003400| 6f 66 20 46 49 4c 45 20 | 77 61 73 20 63 68 65 63 |of FILE |was chec|
|00003410| 6b 65 64 20 69 6e 20 73 | 69 6e 63 65 20 77 65 20 |ked in s|ince we |
|00003420| 6c 61 73 74 20 67 6f 74 | 20 61 20 63 6f 70 79 20 |last got| a copy |
|00003430| 6f 66 20 69 74 1f 0a 28 | 64 65 66 61 6c 69 61 73 |of it..(|defalias|
|00003440| 20 27 73 63 2d 6e 65 77 | 2d 72 65 76 69 73 69 6f | 'sc-new|-revisio|
|00003450| 6e 2d 70 20 23 5b 28 66 | 69 6c 65 29 20 22 08 09 |n-p #[(f|ile) "..|
|00003460| 21 87 22 20 5b 73 63 2d | 67 65 6e 65 72 69 63 2d |!." [sc-|generic-|
|00003470| 6e 65 77 2d 72 65 76 69 | 73 69 6f 6e 2d 70 20 66 |new-revi|sion-p f|
|00003480| 69 6c 65 5d 20 32 20 28 | 23 24 20 2e 20 31 33 32 |ile] 2 (|#$ . 132|
|00003490| 38 39 29 5d 29 0a 23 40 | 33 33 20 46 75 6e 63 74 |89)]).#@|33 Funct|
|000034a0| 69 6f 6e 20 74 6f 20 69 | 6d 70 6c 65 6d 65 6e 74 |ion to i|mplement|
|000034b0| 20 73 63 2d 72 65 76 65 | 72 74 1f 0a 28 64 65 66 | sc-reve|rt..(def|
|000034c0| 76 61 72 20 73 63 2d 67 | 65 6e 65 72 69 63 2d 72 |var sc-g|eneric-r|
|000034d0| 65 76 65 72 74 20 6e 69 | 6c 20 28 23 24 20 2e 20 |evert ni|l (#$ . |
|000034e0| 31 33 34 36 37 29 29 0a | 23 40 37 31 20 43 61 6e |13467)).|#@71 Can|
|000034f0| 63 65 6c 20 61 20 63 68 | 65 63 6b 20 6f 75 74 20 |cel a ch|eck out |
|00003500| 6f 66 20 46 49 4c 45 20 | 61 6e 64 20 67 65 74 20 |of FILE |and get |
|00003510| 62 61 63 6b 20 74 68 65 | 20 6c 61 74 65 73 74 20 |back the| latest |
|00003520| 63 68 65 63 6b 65 64 20 | 69 6e 20 76 65 72 73 69 |checked |in versi|
|00003530| 6f 6e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |on..(def|alias 's|
|00003540| 63 2d 72 65 76 65 72 74 | 20 23 5b 28 66 69 6c 65 |c-revert| #[(file|
|00003550| 29 20 22 08 09 21 87 22 | 20 5b 73 63 2d 67 65 6e |) "..!."| [sc-gen|
|00003560| 65 72 69 63 2d 72 65 76 | 65 72 74 20 66 69 6c 65 |eric-rev|ert file|
|00003570| 5d 20 32 20 28 23 24 20 | 2e 20 31 33 35 34 39 29 |] 2 (#$ |. 13549)|
|00003580| 5d 29 0a 23 40 33 33 20 | 46 75 6e 63 74 69 6f 6e |]).#@33 |Function|
|00003590| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 73 63 | to impl|ement sc|
|000035a0| 2d 72 65 6e 61 6d 65 1f | 0a 28 64 65 66 76 61 72 |-rename.|.(defvar|
|000035b0| 20 73 63 2d 67 65 6e 65 | 72 69 63 2d 72 65 6e 61 | sc-gene|ric-rena|
|000035c0| 6d 65 20 6e 69 6c 20 28 | 23 24 20 2e 20 31 33 37 |me nil (|#$ . 137|
|000035d0| 30 34 29 29 0a 23 40 35 | 31 20 52 65 6e 61 6d 65 |04)).#@5|1 Rename|
|000035e0| 20 74 68 65 20 73 6f 75 | 72 63 65 20 63 6f 6e 74 | the sou|rce cont|
|000035f0| 72 6f 6c 20 61 72 63 68 | 69 76 65 73 20 66 6f 72 |rol arch|ives for|
|00003600| 20 4f 4c 44 20 74 6f 20 | 4e 45 57 1f 0a 28 64 65 | OLD to |NEW..(de|
|00003610| 66 61 6c 69 61 73 20 27 | 73 63 2d 72 65 6e 61 6d |falias '|sc-renam|
|00003620| 65 20 23 5b 28 6f 6c 64 | 20 6e 65 77 29 20 22 08 |e #[(old| new) ".|
|00003630| 09 5c 6e 5c 22 87 22 20 | 5b 73 63 2d 67 65 6e 65 |.\n\"." |[sc-gene|
|00003640| 72 69 63 2d 72 65 6e 61 | 6d 65 20 6f 6c 64 20 6e |ric-rena|me old n|
|00003650| 65 77 5d 20 33 20 28 23 | 24 20 2e 20 31 33 37 38 |ew] 3 (#|$ . 1378|
|00003660| 36 29 5d 29 0a 23 40 31 | 33 20 4d 65 6e 75 20 74 |6)]).#@1|3 Menu t|
|00003670| 6f 20 75 73 65 1f 0a 28 | 64 65 66 76 61 72 20 73 |o use..(|defvar s|
|00003680| 63 2d 6d 65 6e 75 20 6e | 69 6c 20 28 23 24 20 2e |c-menu n|il (#$ .|
|00003690| 20 31 33 39 33 30 29 29 | 0a 23 40 36 34 20 45 78 | 13930))|.#@64 Ex|
|000036a0| 65 63 75 74 65 20 61 20 | 63 6f 6d 6d 61 6e 64 2c |ecute a |command,|
|000036b0| 20 6e 6f 74 69 66 79 69 | 6e 67 20 74 68 65 20 75 | notifyi|ng the u|
|000036c0| 73 65 72 20 61 6e 64 20 | 63 68 65 63 6b 69 6e 67 |ser and |checking|
|000036d0| 20 66 6f 72 20 65 72 72 | 6f 72 73 2e 1f 0a 28 64 | for err|ors...(d|
|000036e0| 65 66 61 6c 69 61 73 20 | 27 73 63 2d 64 6f 2d 63 |efalias |'sc-do-c|
|000036f0| 6f 6d 6d 61 6e 64 20 23 | 5b 28 62 75 66 66 65 72 |ommand #|[(buffer|
|00003700| 20 6d 65 73 73 61 67 65 | 20 63 6f 6d 6d 61 6e 64 | message| command|
|00003710| 20 66 69 6c 65 20 73 63 | 2d 66 69 6c 65 20 26 72 | file sc|-file &r|
|00003720| 65 73 74 20 66 6c 61 67 | 73 29 20 22 c0 09 21 11 |est flag|s) "..!.|
|00003730| c2 c3 5c 6e 09 23 88 8a | c4 0d 21 71 88 c6 20 88 |..\n.#..|..!q.. .|
|00003740| c7 0e 08 09 ad 83 0e 09 | 43 5c 22 16 08 ca cb 0e |........|C\".....|
|00003750| 08 5c 22 16 08 cc 09 ae | 81 cd 21 1e 0e cf d0 0e |.\".....|..!.....|
|00003760| 11 cb d2 cb 0e 08 26 06 | 2a d3 61 89 1e 14 ab 86 |......&.|*.a.....|
|00003770| c2 d5 5c 6e 5c 22 aa a0 | 8a 0d 71 88 65 62 88 0e |..\n\"..|..q.eb..|
|00003780| 11 63 88 d6 d7 0e 08 5c | 22 88 d8 63 88 65 62 88 |.c.....\|"..c.eb.|
|00003790| 29 d9 0d 21 88 da db 5c | 6e 5c 22 29 87 22 20 5b |)..!...\|n\")." [|
|000037a0| 65 78 70 61 6e 64 2d 66 | 69 6c 65 2d 6e 61 6d 65 |expand-f|ile-name|
|000037b0| 20 66 69 6c 65 20 6d 65 | 73 73 61 67 65 20 22 52 | file me|ssage "R|
|000037c0| 75 6e 6e 69 6e 67 20 25 | 73 20 6f 6e 20 25 73 2e |unning %|s on %s.|
|000037d0| 2e 2e 22 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |.." get-|buffer-c|
|000037e0| 72 65 61 74 65 20 62 75 | 66 66 65 72 20 65 72 61 |reate bu|ffer era|
|000037f0| 73 65 2d 62 75 66 66 65 | 72 20 61 70 70 65 6e 64 |se-buffe|r append|
|00003800| 20 66 6c 61 67 73 20 73 | 63 2d 66 69 6c 65 20 64 | flags s|c-file d|
|00003810| 65 6c 71 20 6e 69 6c 20 | 66 69 6c 65 2d 6e 61 6d |elq nil |file-nam|
|00003820| 65 2d 64 69 72 65 63 74 | 6f 72 79 20 22 2e 2f 22 |e-direct|ory "./"|
|00003830| 20 64 65 66 61 75 6c 74 | 2d 64 69 72 65 63 74 6f | default|-directo|
|00003840| 72 79 20 61 70 70 6c 79 | 20 63 61 6c 6c 2d 70 72 |ry apply| call-pr|
|00003850| 6f 63 65 73 73 20 63 6f | 6d 6d 61 6e 64 20 74 20 |ocess co|mmand t |
|00003860| 30 20 73 74 61 74 75 73 | 20 22 52 75 6e 6e 69 6e |0 status| "Runnin|
|00003870| 67 20 25 73 2e 2e 2e 4f | 4b 22 20 6d 61 70 63 61 |g %s...O|K" mapca|
|00003880| 72 20 23 5b 28 69 29 20 | 22 c0 09 b1 02 87 22 20 |r #[(i) |"....." |
|00003890| 5b 22 20 22 20 69 5d 20 | 32 5d 20 22 5c 6e 5c 6e |[" " i] |2] "\n\n|
|000038a0| 22 20 64 69 73 70 6c 61 | 79 2d 62 75 66 66 65 72 |" displa|y-buffer|
|000038b0| 20 65 72 72 6f 72 20 22 | 52 75 6e 6e 69 6e 67 20 | error "|Running |
|000038c0| 25 73 2e 2e 2e 46 41 49 | 4c 45 44 22 5d 20 38 20 |%s...FAI|LED"] 8 |
|000038d0| 28 23 24 20 2e 20 31 33 | 39 38 32 29 5d 29 0a 23 |(#$ . 13|982)]).#|
|000038e0| 40 34 31 20 45 6e 74 65 | 72 20 61 20 63 6f 6d 6d |@41 Ente|r a comm|
|000038f0| 65 6e 74 2e 20 52 65 74 | 75 72 6e 20 69 74 20 61 |ent. Ret|urn it a|
|00003900| 73 20 61 20 73 74 72 69 | 6e 67 2e 1f 0a 28 64 65 |s a stri|ng...(de|
|00003910| 66 61 6c 69 61 73 20 27 | 73 63 2d 65 6e 74 65 72 |falias '|sc-enter|
|00003920| 2d 63 6f 6d 6d 65 6e 74 | 20 23 5b 6e 69 6c 20 22 |-comment| #[nil "|
|00003930| c0 20 19 c2 c3 c4 0d 5c | 22 21 16 06 c7 8b 29 87 |. .....\|"!....).|
|00003940| 22 20 5b 73 63 2d 74 65 | 6d 70 2d 62 75 66 66 65 |" [sc-te|mp-buffe|
|00003950| 72 20 62 75 66 66 65 72 | 20 67 65 74 2d 62 75 66 |r buffer| get-buf|
|00003960| 66 65 72 2d 63 72 65 61 | 74 65 20 66 6f 72 6d 61 |fer-crea|te forma|
|00003970| 74 20 22 2a 25 73 2d 4c | 6f 67 2a 22 20 73 63 2d |t "*%s-L|og*" sc-|
|00003980| 67 65 6e 65 72 69 63 2d | 6e 61 6d 65 20 73 63 2d |generic-|name sc-|
|00003990| 67 65 6e 65 72 69 63 2d | 6c 6f 67 2d 62 75 66 20 |generic-|log-buf |
|000039a0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 09 21 |((byte-c|ode "..!|
|000039b0| 88 c2 20 88 c3 c4 21 88 | c5 20 88 c6 c7 21 88 c4 |.. ...!.|. ...!..|
|000039c0| c8 c9 8f 3f ad 8d ca 20 | 89 1e 0b 47 cc 56 ad 82 |...?... |...G.V..|
|000039d0| 0e 0b 29 c4 16 0d ce 09 | 21 88 87 22 20 5b 70 6f |..).....|!.." [po|
|000039e0| 70 2d 74 6f 2d 62 75 66 | 66 65 72 20 62 75 66 66 |p-to-buf|fer buff|
|000039f0| 65 72 20 65 72 61 73 65 | 2d 62 75 66 66 65 72 20 |er erase|-buffer |
|00003a00| 73 65 74 2d 62 75 66 66 | 65 72 2d 6d 6f 64 69 66 |set-buff|er-modif|
|00003a10| 69 65 64 2d 70 20 6e 69 | 6c 20 73 63 2d 6c 6f 67 |ied-p ni|l sc-log|
|00003a20| 2d 65 6e 74 72 79 2d 6d | 6f 64 65 20 6d 65 73 73 |-entry-m|ode mess|
|00003a30| 61 67 65 20 22 45 6e 74 | 65 72 20 6c 6f 67 20 6d |age "Ent|er log m|
|00003a40| 65 73 73 61 67 65 2e 20 | 54 79 70 65 20 43 2d 63 |essage. |Type C-c|
|00003a50| 20 43 2d 63 20 77 68 65 | 6e 20 64 6f 6e 65 2c 20 | C-c whe|n done, |
|00003a60| 43 2d 63 20 3f 20 66 6f | 72 20 68 65 6c 70 2e 22 |C-c ? fo|r help."|
|00003a70| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 20 88 | (byte-c|ode ". .|
|00003a80| c1 87 22 20 5b 72 65 63 | 75 72 73 69 76 65 2d 65 |.." [rec|ursive-e|
|00003a90| 64 69 74 20 6e 69 6c 5d | 20 31 29 20 28 28 65 72 |dit nil]| 1) ((er|
|00003aa0| 72 6f 72 20 74 29 29 20 | 62 75 66 66 65 72 2d 73 |ror t)) |buffer-s|
|00003ab0| 74 72 69 6e 67 20 62 73 | 20 30 20 62 75 66 66 65 |tring bs| 0 buffe|
|00003ac0| 72 2d 66 69 6c 65 2d 6e | 61 6d 65 20 62 75 72 79 |r-file-n|ame bury|
|00003ad0| 2d 62 75 66 66 65 72 5d | 20 34 29 29 5d 20 34 20 |-buffer]| 4))] 4 |
|00003ae0| 28 23 24 20 2e 20 31 34 | 35 36 34 29 5d 29 0a 23 |(#$ . 14|564)]).#|
|00003af0| 40 38 30 20 52 65 74 75 | 72 6e 20 74 68 65 20 6c |@80 Retu|rn the l|
|00003b00| 6f 67 69 6e 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |ogin nam|e of the|
|00003b10| 20 6c 6f 63 6b 65 72 20 | 6f 66 20 46 49 4c 45 2e | locker |of FILE.|
|00003b20| 20 20 52 65 74 75 72 6e | 20 6e 69 6c 20 69 66 20 | Return| nil if |
|00003b30| 46 49 4c 45 20 69 73 20 | 6e 6f 74 20 6c 6f 63 6b |FILE is |not lock|
|00003b40| 65 64 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |ed..(def|alias 's|
|00003b50| 63 2d 6c 6f 63 6b 69 6e | 67 2d 75 73 65 72 20 23 |c-lockin|g-user #|
|00003b60| 5b 28 66 69 6c 65 29 20 | 22 c0 09 21 40 87 22 20 |[(file) |"..!@." |
|00003b70| 5b 73 63 2d 6c 6f 63 6b | 2d 69 6e 66 6f 20 66 69 |[sc-lock|-info fi|
|00003b80| 6c 65 5d 20 32 20 28 23 | 24 20 2e 20 31 35 30 39 |le] 2 (#|$ . 1509|
|00003b90| 32 29 5d 29 0a 23 40 38 | 32 20 52 65 74 75 72 6e |2)]).#@8|2 Return|
|00003ba0| 20 74 68 65 20 72 65 76 | 69 73 69 6f 6e 20 6e 75 | the rev|ision nu|
|00003bb0| 6d 62 65 72 20 63 75 72 | 72 65 6e 74 6c 79 20 6c |mber cur|rently l|
|00003bc0| 6f 63 6b 65 64 20 66 6f | 72 20 46 49 4c 45 2c 20 |ocked fo|r FILE, |
|00003bd0| 6e 69 6c 20 69 66 20 46 | 49 4c 45 20 69 73 20 6e |nil if F|ILE is n|
|00003be0| 6f 74 20 6c 6f 63 6b 65 | 64 2e 1f 0a 28 64 65 66 |ot locke|d...(def|
|00003bf0| 61 6c 69 61 73 20 27 73 | 63 2d 6c 6f 63 6b 65 64 |alias 's|c-locked|
|00003c00| 2d 72 65 76 69 73 69 6f | 6e 20 23 5b 28 66 69 6c |-revisio|n #[(fil|
|00003c10| 65 29 20 22 c0 09 21 41 | 40 87 22 20 5b 73 63 2d |e) "..!A|@." [sc-|
|00003c20| 6c 6f 63 6b 2d 69 6e 66 | 6f 20 66 69 6c 65 5d 20 |lock-inf|o file] |
|00003c30| 32 20 28 23 24 20 2e 20 | 31 35 32 35 38 29 5d 29 |2 (#$ . |15258)])|
|00003c40| 0a 23 40 37 35 20 53 65 | 74 20 74 68 65 20 6d 6f |.#@75 Se|t the mo|
|00003c50| 64 65 20 6c 69 6e 65 20 | 66 6f 72 20 74 68 65 20 |de line |for the |
|00003c60| 63 75 72 72 65 6e 74 20 | 62 75 66 66 65 72 2e 0a |current |buffer..|
|00003c70| 46 49 4c 45 20 69 73 20 | 74 68 65 20 66 69 6c 65 |FILE is |the file|
|00003c80| 20 62 65 69 6e 67 20 76 | 69 73 69 74 65 64 2e 1f | being v|isited..|
|00003c90| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 63 2d 6d |.(defali|as 'sc-m|
|00003ca0| 6f 64 65 2d 6c 69 6e 65 | 20 23 5b 6e 69 6c 20 22 |ode-line| #[nil "|
|00003cb0| 08 19 c2 09 21 1b 0c ac | 82 c5 14 c6 0c 73 ac 85 |....!...|.....s..|
|00003cc0| c7 0c c8 5c 22 14 c9 c6 | 21 88 0b ca 61 ac 83 0b |...\"...|!...a...|
|00003cd0| ac 83 cb aa a3 0b 40 ac | 87 cc cd 0e 0e 5c 22 aa |......@.|.....\".|
|00003ce0| 98 0b 40 cf 20 6b ab 8a | cc d0 0e 0e 0b 41 40 23 |..@. k..|.....A@#|
|00003cf0| aa 87 cc d0 0e 0e 0b 40 | 23 89 16 06 2a 87 22 20 |.......@|#...*." |
|00003d00| 5b 62 75 66 66 65 72 2d | 66 69 6c 65 2d 6e 61 6d |[buffer-|file-nam|
|00003d10| 65 20 66 69 6c 65 20 73 | 63 2d 6c 6f 63 6b 2d 69 |e file s|c-lock-i|
|00003d20| 6e 66 6f 20 6c 6f 63 6b | 2d 69 6e 66 6f 20 67 6c |nfo lock|-info gl|
|00003d30| 6f 62 61 6c 2d 6d 6f 64 | 65 2d 73 74 72 69 6e 67 |obal-mod|e-string|
|00003d40| 20 28 22 22 29 20 73 63 | 2d 6d 6f 64 65 2d 6c 69 | ("") sc|-mode-li|
|00003d50| 6e 65 2d 73 74 72 69 6e | 67 20 61 70 70 65 6e 64 |ne-strin|g append|
|00003d60| 20 28 73 63 2d 6d 6f 64 | 65 2d 6c 69 6e 65 2d 73 | (sc-mod|e-line-s|
|00003d70| 74 72 69 6e 67 29 20 6d | 61 6b 65 2d 6c 6f 63 61 |tring) m|ake-loca|
|00003d80| 6c 2d 76 61 72 69 61 62 | 6c 65 20 6e 61 20 6e 69 |l-variab|le na ni|
|00003d90| 6c 20 66 6f 72 6d 61 74 | 20 22 20 3c 25 73 3a 3e |l format| " <%s:>|
|00003da0| 22 20 73 63 2d 67 65 6e | 65 72 69 63 2d 6e 61 6d |" sc-gen|eric-nam|
|00003db0| 65 20 75 73 65 72 2d 6c | 6f 67 69 6e 2d 6e 61 6d |e user-l|ogin-nam|
|00003dc0| 65 20 22 20 3c 25 73 3a | 20 25 73 3e 22 5d 20 34 |e " <%s:| %s>"] 4|
|00003dd0| 20 28 23 24 20 2e 20 31 | 35 34 33 30 29 5d 29 0a | (#$ . 1|5430)]).|
|00003de0| 23 40 34 35 20 52 65 74 | 75 72 6e 20 61 20 74 65 |#@45 Ret|urn a te|
|00003df0| 6d 70 6f 72 61 72 79 20 | 62 75 66 66 65 72 20 74 |mporary |buffer t|
|00003e00| 6f 20 75 73 65 20 66 6f | 72 20 6f 75 74 70 75 74 |o use fo|r output|
|00003e10| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 2d |..(defal|ias 'sc-|
|00003e20| 74 65 6d 70 2d 62 75 66 | 66 65 72 20 23 5b 6e 69 |temp-buf|fer #[ni|
|00003e30| 6c 20 22 c0 c1 c2 0b 5c | 22 21 87 22 20 5b 67 65 |l "....\|"!." [ge|
|00003e40| 74 2d 62 75 66 66 65 72 | 2d 63 72 65 61 74 65 20 |t-buffer|-create |
|00003e50| 66 6f 72 6d 61 74 20 22 | 2a 25 73 2a 22 20 73 63 |format "|*%s*" sc|
|00003e60| 2d 67 65 6e 65 72 69 63 | 2d 6e 61 6d 65 5d 20 34 |-generic|-name] 4|
|00003e70| 20 28 23 24 20 2e 20 31 | 35 38 34 35 29 5d 29 0a | (#$ . 1|5845)]).|
|00003e80| 23 40 31 30 35 20 41 70 | 70 6c 79 20 46 55 4e 43 |#@105 Ap|ply FUNC|
|00003e90| 20 74 6f 20 74 68 65 20 | 66 69 6c 65 73 20 72 65 | to the |files re|
|00003ea0| 67 69 73 74 65 72 65 64 | 20 69 6e 20 74 68 65 20 |gistered| in the |
|00003eb0| 73 6f 75 72 63 65 20 63 | 6f 6e 74 72 6f 6c 20 73 |source c|ontrol s|
|00003ec0| 79 73 74 65 6d 2e 0a 46 | 55 4e 43 20 69 73 20 70 |ystem..F|UNC is p|
|00003ed0| 61 73 73 65 64 20 74 68 | 65 20 66 69 6c 65 20 70 |assed th|e file p|
|00003ee0| 61 74 68 20 61 6e 64 20 | 41 52 47 53 2e 1f 0a 28 |ath and |ARGS...(|
|00003ef0| 64 65 66 61 6c 69 61 73 | 20 27 73 63 2d 74 72 65 |defalias| 'sc-tre|
|00003f00| 65 2d 77 61 6c 6b 20 23 | 5b 28 66 75 6e 63 20 26 |e-walk #|[(func &|
|00003f10| 72 65 73 74 20 61 72 67 | 73 29 20 22 c0 c1 5c 6e |rest arg|s) "..\n|
|00003f20| 5c 22 1b c4 0b 21 1d 0e | 06 1e 07 c8 1e 09 8a 0d |\"...!..|........|
|00003f30| 71 88 ca 20 88 0e 07 16 | 06 cb 20 88 65 62 88 cc |q.. ....|.. .eb..|
|00003f40| cd c8 ce 23 ab 89 cf 79 | 88 d0 d1 21 88 aa 70 65 |...#...y|...!..pe|
|00003f50| 64 55 ab 86 d2 d3 0e 06 | 5c 22 88 65 62 88 c8 16 |dU......|\".eb...|
|00003f60| 09 6d ac 94 60 c8 7f 88 | 60 7b 89 1e 14 0e 09 42 |.m..`...|`{.....B|
|00003f70| 16 09 29 d1 79 88 aa 69 | 0e 09 9f 16 09 ca 20 88 |..).y..i|...... .|
|00003f80| 29 d5 0d 21 88 8a 0d 71 | 88 0e 09 ab 92 d6 0e 17 |)..!...q|........|
|00003f90| 0e 09 40 0e 18 23 88 0e | 09 41 89 16 09 ac 6e 0d |..@..#..|.A....n.|
|00003fa0| 2d 87 22 20 5b 66 6f 72 | 6d 61 74 20 22 2a 25 73 |-." [for|mat "*%s|
|00003fb0| 20 64 69 72 65 63 74 6f | 72 79 2a 22 20 73 63 2d | directo|ry*" sc-|
|00003fc0| 67 65 6e 65 72 69 63 2d | 6e 61 6d 65 20 62 75 66 |generic-|name buf|
|00003fd0| 66 65 72 2d 6e 61 6d 65 | 20 67 65 74 2d 62 75 66 |fer-name| get-buf|
|00003fe0| 66 65 72 2d 63 72 65 61 | 74 65 20 62 75 66 66 65 |fer-crea|te buffe|
|00003ff0| 72 20 64 65 66 61 75 6c | 74 2d 64 69 72 65 63 74 |r defaul|t-direct|
|00004000| 6f 72 79 20 64 69 72 20 | 6e 69 6c 20 66 69 6c 65 |ory dir |nil file|
|00004010| 73 20 65 72 61 73 65 2d | 62 75 66 66 65 72 20 73 |s erase-|buffer s|
|00004020| 63 2d 74 72 65 65 2d 6c | 69 73 74 20 73 65 61 72 |c-tree-l|ist sear|
|00004030| 63 68 2d 66 6f 72 77 61 | 72 64 20 22 6e 6f 74 20 |ch-forwa|rd "not |
|00004040| 66 6f 75 6e 64 22 20 74 | 20 30 20 6b 69 6c 6c 2d |found" t| 0 kill-|
|00004050| 6c 69 6e 65 20 31 20 65 | 72 72 6f 72 20 22 4e 6f |line 1 e|rror "No|
|00004060| 20 72 65 67 69 73 74 65 | 72 65 64 20 66 69 6c 65 | registe|red file|
|00004070| 73 20 75 6e 64 65 72 20 | 25 73 22 20 66 69 6c 65 |s under |%s" file|
|00004080| 20 64 69 73 70 6c 61 79 | 2d 62 75 66 66 65 72 20 | display|-buffer |
|00004090| 61 70 70 6c 79 20 66 75 | 6e 63 20 61 72 67 73 5d |apply fu|nc args]|
|000040a0| 20 35 20 28 23 24 20 2e | 20 31 36 30 30 36 29 5d | 5 (#$ .| 16006)]|
|000040b0| 29 0a 23 40 31 33 39 20 | 46 6f 72 20 74 68 65 20 |).#@139 |For the |
|000040c0| 67 69 76 65 6e 20 46 49 | 4c 45 2c 20 72 65 74 72 |given FI|LE, retr|
|000040d0| 69 65 76 65 20 61 20 63 | 6f 70 79 20 6f 66 20 74 |ieve a c|opy of t|
|000040e0| 68 65 20 76 65 72 73 69 | 6f 6e 20 77 69 74 68 20 |he versi|on with |
|000040f0| 67 69 76 65 6e 20 52 45 | 56 49 53 49 4f 4e 2e 0a |given RE|VISION..|
|00004100| 54 68 65 20 74 65 78 74 | 20 69 73 20 72 65 74 72 |The text| is retr|
|00004110| 69 65 76 65 64 20 69 6e | 74 6f 20 61 20 74 65 6d |ieved in|to a tem|
|00004120| 70 66 69 6c 65 2e 20 20 | 52 65 74 75 72 6e 20 74 |pfile. |Return t|
|00004130| 68 65 20 74 65 6d 70 66 | 69 6c 65 20 6e 61 6d 65 |he tempf|ile name|
|00004140| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 63 |...(defa|lias 'sc|
|00004150| 2d 67 65 74 2d 76 65 72 | 73 69 6f 6e 2d 69 6e 2d |-get-ver|sion-in-|
|00004160| 74 65 6d 70 2d 66 69 6c | 65 20 23 5b 28 66 69 6c |temp-fil|e #[(fil|
|00004170| 65 20 72 65 76 69 73 69 | 6f 6e 29 20 22 c0 c1 5c |e revisi|on) "..\|
|00004180| 6e 21 ae 81 c3 c4 c5 0e | 06 21 c4 52 21 1e 07 c8 |n!......|.!.R!...|
|00004190| 0e 07 21 1e 09 ca 0e 06 | 0e 09 5c 6e 23 88 8a 0e |..!.....|..\n#...|
|000041a0| 09 71 88 cb 65 64 0e 07 | cc cd 25 88 29 ce 0e 09 |.q..ed..|..%.)...|
|000041b0| 21 88 cf d0 d1 89 89 d2 | 0e 07 26 06 88 0e 07 2a |!.......|..&....*|
|000041c0| 87 22 20 5b 6d 61 6b 65 | 2d 74 65 6d 70 2d 6e 61 |." [make|-temp-na|
|000041d0| 6d 65 20 63 63 61 73 65 | 2d 70 72 6f 74 65 63 74 |me ccase|-protect|
|000041e0| 2d 65 78 70 61 6e 64 65 | 64 2d 6e 61 6d 65 20 72 |-expande|d-name r|
|000041f0| 65 76 69 73 69 6f 6e 20 | 22 63 75 72 72 65 6e 74 |evision |"current|
|00004200| 22 20 22 2d 22 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |" "-" fi|le-name-|
|00004210| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 20 66 69 6c |nondirec|tory fil|
|00004220| 65 20 6f 6c 64 76 65 72 | 73 69 6f 6e 20 67 65 74 |e oldver|sion get|
|00004230| 2d 62 75 66 66 65 72 2d | 63 72 65 61 74 65 20 76 |-buffer-|create v|
|00004240| 62 75 66 20 73 63 2d 67 | 65 74 2d 76 65 72 73 69 |buf sc-g|et-versi|
|00004250| 6f 6e 20 77 72 69 74 65 | 2d 72 65 67 69 6f 6e 20 |on write|-region |
|00004260| 74 20 30 20 6b 69 6c 6c | 2d 62 75 66 66 65 72 20 |t 0 kill|-buffer |
|00004270| 63 61 6c 6c 2d 70 72 6f | 63 65 73 73 20 22 63 68 |call-pro|cess "ch|
|00004280| 6d 6f 64 22 20 6e 69 6c | 20 22 2d 77 22 5d 20 37 |mod" nil| "-w"] 7|
|00004290| 20 28 23 24 20 2e 20 31 | 36 35 36 38 29 5d 29 0a | (#$ . 1|6568)]).|
|000042a0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 63 2d 69 6e |(defalia|s 'sc-in|
|000042b0| 73 65 72 74 2d 66 69 6c | 65 2d 6c 6f 63 6b 2d 69 |sert-fil|e-lock-i|
|000042c0| 6e 66 6f 20 23 5b 28 66 | 69 6c 65 20 6c 6f 63 6b |nfo #[(f|ile lock|
|000042d0| 2d 69 6e 66 6f 29 20 22 | 08 40 c1 08 41 40 b1 03 |-info) "|.@..A@..|
|000042e0| 88 c2 c3 c4 5c 22 88 c5 | 0e 06 21 c7 b1 02 87 22 |....\"..|..!...."|
|000042f0| 20 5b 6c 6f 63 6b 2d 69 | 6e 66 6f 20 22 3a 22 20 | [lock-i|nfo ":" |
|00004300| 69 6e 64 65 6e 74 2d 74 | 6f 2d 63 6f 6c 75 6d 6e |indent-t|o-column|
|00004310| 20 31 36 20 31 20 66 69 | 6c 65 2d 6e 61 6d 65 2d | 16 1 fi|le-name-|
|00004320| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 20 66 69 6c |nondirec|tory fil|
|00004330| 65 20 22 5c 6e 22 5d 20 | 33 5d 29 0a 23 40 37 33 |e "\n"] |3]).#@73|
|00004340| 20 4c 69 73 74 20 61 6c | 6c 20 66 69 6c 65 73 20 | List al|l files |
|00004350| 75 6e 64 65 72 6e 65 61 | 74 68 20 74 68 65 20 63 |undernea|th the c|
|00004360| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|00004370| 20 6d 61 74 63 68 69 6e | 67 20 61 20 70 72 65 66 | matchin|g a pref|
|00004380| 69 78 20 74 79 70 65 2e | 1f 0a 28 64 65 66 61 6c |ix type.|..(defal|
|00004390| 69 61 73 20 27 73 63 2d | 6c 69 73 74 2d 66 69 6c |ias 'sc-|list-fil|
|000043a0| 65 2d 69 66 2d 6c 6f 63 | 6b 65 64 20 23 5b 28 66 |e-if-loc|ked #[(f|
|000043b0| 69 6c 65 20 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 |ile &opt|ional ar|
|000043c0| 67 29 20 22 c0 09 21 89 | 1a ad 95 5c 6e 40 ad 91 |g) "..!.|...\n@..|
|000043d0| 0b ab 86 0b 5c 6e 40 6b | ad 88 c4 09 5c 6e 5c 22 |....\n@k|....\n\"|
|000043e0| 88 c5 c6 21 29 87 22 20 | 5b 73 63 2d 6c 6f 63 6b |...!)." |[sc-lock|
|000043f0| 2d 69 6e 66 6f 20 66 69 | 6c 65 20 6c 6f 63 6b 2d |-info fi|le lock-|
|00004400| 69 6e 66 6f 20 61 72 67 | 20 73 63 2d 69 6e 73 65 |info arg| sc-inse|
|00004410| 72 74 2d 66 69 6c 65 2d | 6c 6f 63 6b 2d 69 6e 66 |rt-file-|lock-inf|
|00004420| 6f 20 73 69 74 2d 66 6f | 72 20 30 5d 20 34 20 28 |o sit-fo|r 0] 4 (|
|00004430| 23 24 20 2e 20 31 37 32 | 31 37 29 5d 29 0a 28 64 |#$ . 172|17)]).(d|
|00004440| 65 66 61 6c 69 61 73 20 | 27 73 63 2d 6c 69 73 74 |efalias |'sc-list|
|00004450| 2d 66 69 6c 65 20 23 5b | 28 66 69 6c 65 29 20 22 |-file #[|(file) "|
|00004460| c0 09 21 89 1a c3 61 ab | 8e c4 c5 c6 5c 22 88 c7 |..!...a.|....\"..|
|00004470| 09 21 c8 b1 02 88 aa ad | 5c 6e 40 ab 87 c9 09 5c |.!......|\n@....\|
|00004480| 6e 5c 22 88 aa a2 ca 09 | 21 ab 91 cb 63 88 c4 c5 |n\".....|!...c...|
|00004490| c6 5c 22 88 c7 09 21 c8 | b1 02 88 aa 8c c4 c5 c6 |.\"...!.|........|
|000044a0| 5c 22 88 c7 09 21 c8 b1 | 02 88 cc cd 21 29 87 22 |\"...!..|....!)."|
|000044b0| 20 5b 73 63 2d 6c 6f 63 | 6b 2d 69 6e 66 6f 20 66 | [sc-loc|k-info f|
|000044c0| 69 6c 65 20 6c 6f 63 6b | 2d 69 6e 66 6f 20 6e 61 |ile lock|-info na|
|000044d0| 20 69 6e 64 65 6e 74 2d | 74 6f 2d 63 6f 6c 75 6d | indent-|to-colum|
|000044e0| 6e 20 31 36 20 31 20 66 | 69 6c 65 2d 6e 61 6d 65 |n 16 1 f|ile-name|
|000044f0| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 22 5c |-nondire|ctory "\|
|00004500| 6e 22 20 73 63 2d 69 6e | 73 65 72 74 2d 66 69 6c |n" sc-in|sert-fil|
|00004510| 65 2d 6c 6f 63 6b 2d 69 | 6e 66 6f 20 73 63 2d 6e |e-lock-i|nfo sc-n|
|00004520| 65 77 2d 72 65 76 69 73 | 69 6f 6e 2d 70 20 22 6e |ew-revis|ion-p "n|
|00004530| 65 65 64 73 20 75 70 64 | 61 74 65 22 20 73 69 74 |eeds upd|ate" sit|
|00004540| 2d 66 6f 72 20 30 5d 20 | 34 5d 29 0a 23 40 36 34 |-for 0] |4]).#@64|
|00004550| 20 67 65 74 20 74 68 65 | 20 6c 61 74 65 73 74 20 | get the| latest |
|00004560| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 66 |version |of the f|
|00004570| 69 6c 65 20 69 66 20 61 | 20 6e 65 77 20 6f 6e 65 |ile if a| new one|
|00004580| 20 77 61 73 20 63 68 65 | 63 6b 65 64 2d 69 6e 1f | was che|cked-in.|
|00004590| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 63 2d 75 |.(defali|as 'sc-u|
|000045a0| 70 64 61 74 65 2d 66 69 | 6c 65 20 23 5b 28 66 69 |pdate-fi|le #[(fi|
|000045b0| 6c 65 29 20 22 c0 09 21 | ad b5 c2 09 21 1b c4 c5 |le) "..!|....!...|
|000045c0| 09 c6 5c 22 09 c7 23 88 | c8 09 21 89 1e 09 ab 8e |..\"..#.|..!.....|
|000045d0| 8a 0e 09 71 88 ca c6 c7 | 5c 22 88 cb 20 88 29 29 |...q....|\".. .))|
|000045e0| cc 63 88 cd ce cf 5c 22 | 88 0b d0 b1 02 88 d1 d2 |.c....\"|........|
|000045f0| 21 29 87 22 20 5b 73 63 | 2d 6e 65 77 2d 72 65 76 |!)." [sc|-new-rev|
|00004600| 69 73 69 6f 6e 2d 70 20 | 66 69 6c 65 20 66 69 6c |ision-p |file fil|
|00004610| 65 2d 6e 61 6d 65 2d 6e | 6f 6e 64 69 72 65 63 74 |e-name-n|ondirect|
|00004620| 6f 72 79 20 66 69 6c 65 | 2d 6e 61 6d 65 20 72 65 |ory file|-name re|
|00004630| 6e 61 6d 65 2d 66 69 6c | 65 20 73 63 2d 67 65 74 |name-fil|e sc-get|
|00004640| 2d 76 65 72 73 69 6f 6e | 2d 69 6e 2d 74 65 6d 70 |-version|-in-temp|
|00004650| 2d 66 69 6c 65 20 6e 69 | 6c 20 74 20 67 65 74 2d |-file ni|l t get-|
|00004660| 66 69 6c 65 2d 62 75 66 | 66 65 72 20 62 20 72 65 |file-buf|fer b re|
|00004670| 76 65 72 74 2d 62 75 66 | 66 65 72 20 73 63 2d 6d |vert-buf|fer sc-m|
|00004680| 6f 64 65 2d 6c 69 6e 65 | 20 22 75 70 64 61 74 65 |ode-line| "update|
|00004690| 64 22 20 69 6e 64 65 6e | 74 2d 74 6f 2d 63 6f 6c |d" inden|t-to-col|
|000046a0| 75 6d 6e 20 31 36 20 31 | 20 22 5c 6e 22 20 73 69 |umn 16 1| "\n" si|
|000046b0| 74 2d 66 6f 72 20 30 5d | 20 35 20 28 23 24 20 2e |t-for 0]| 5 (#$ .|
|000046c0| 20 31 37 37 34 35 29 5d | 29 0a 28 62 79 74 65 2d | 17745)]|).(byte-|
|000046d0| 63 6f 64 65 20 22 08 ac | a7 c1 20 10 c2 08 c3 c4 |code "..|.. .....|
|000046e0| 23 88 c2 08 c5 c4 23 88 | c2 08 c6 c7 23 88 c2 08 |#.....#.|....#...|
|000046f0| c8 c7 23 88 c2 08 c9 ca | 23 88 c2 08 cb ca 23 88 |..#.....|#.....#.|
|00004700| c1 87 22 20 5b 73 63 2d | 6c 6f 67 2d 65 6e 74 72 |.." [sc-|log-entr|
|00004710| 79 2d 6b 65 79 6d 61 70 | 20 6d 61 6b 65 2d 73 70 |y-keymap| make-sp|
|00004720| 61 72 73 65 2d 6b 65 79 | 6d 61 70 20 64 65 66 69 |arse-key|map defi|
|00004730| 6e 65 2d 6b 65 79 20 22 | 03 69 22 20 73 63 2d 69 |ne-key "|.i" sc-i|
|00004740| 6e 73 65 72 74 2d 6c 61 | 73 74 2d 6c 6f 67 20 22 |nsert-la|st-log "|
|00004750| 03 09 22 20 22 03 61 22 | 20 73 63 2d 61 62 6f 72 |.." ".a"| sc-abor|
|00004760| 74 2d 63 68 65 63 6b 2d | 69 6e 20 22 03 01 22 20 |t-check-|in ".." |
|00004770| 22 03 03 22 20 73 63 2d | 6c 6f 67 2d 65 78 69 74 |".." sc-|log-exit|
|00004780| 20 22 18 13 22 5d 20 34 | 29 0a 23 40 35 32 20 2a | ".."] 4|).#@52 *|
|00004790| 46 75 6e 63 74 69 6f 6e | 20 6f 72 20 66 75 6e 63 |Function| or func|
|000047a0| 74 69 6f 6e 73 20 74 6f | 20 72 75 6e 20 6f 6e 20 |tions to| run on |
|000047b0| 65 6e 74 72 79 20 74 6f | 20 73 63 2d 6d 6f 64 65 |entry to| sc-mode|
|000047c0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 73 63 2d 6d 6f |...(defv|ar sc-mo|
|000047d0| 64 65 2d 68 6f 6f 6b 20 | 6e 69 6c 20 28 23 24 20 |de-hook |nil (#$ |
|000047e0| 2e 20 2d 31 38 33 31 39 | 29 29 0a 23 40 37 30 20 |. -18319|)).#@70 |
|000047f0| 54 68 65 20 63 75 72 72 | 65 6e 74 6c 79 20 61 63 |The curr|ently ac|
|00004800| 74 69 76 65 20 73 6f 75 | 72 63 65 20 63 6f 6e 74 |tive sou|rce cont|
|00004810| 72 6f 6c 20 6d 6f 64 65 | 2e 20 20 55 73 65 20 4d |rol mode|. Use M|
|00004820| 2d 78 20 73 63 2d 6d 6f | 64 65 20 74 6f 20 73 65 |-x sc-mo|de to se|
|00004830| 74 20 69 74 1f 0a 28 64 | 65 66 76 61 72 20 73 63 |t it..(d|efvar sc|
|00004840| 2d 6d 6f 64 65 20 6e 69 | 6c 20 28 23 24 20 2e 20 |-mode ni|l (#$ . |
|00004850| 31 38 34 31 36 29 29 0a | 23 40 32 31 36 39 20 54 |18416)).|#@2169 T|
|00004860| 6f 67 67 6c 65 20 73 63 | 2d 6d 6f 64 65 2e 0a 53 |oggle sc|-mode..S|
|00004870| 59 53 54 45 4d 20 63 61 | 6e 20 62 65 20 73 63 63 |YSTEM ca|n be scc|
|00004880| 73 2c 20 72 63 73 20 6f | 72 20 63 76 73 2e 0a 43 |s, rcs o|r cvs..C|
|00004890| 76 73 20 72 65 71 75 69 | 72 65 73 20 74 68 65 20 |vs requi|res the |
|000048a0| 70 63 6c 2d 63 76 73 20 | 70 61 63 6b 61 67 65 2e |pcl-cvs |package.|
|000048b0| 0a 0a 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |..The fo|llowing |
|000048c0| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 61 76 61 |commands| are ava|
|000048d0| 69 6c 61 62 6c 65 0a 5c | 5b 73 63 2d 6e 65 78 74 |ilable.\|[sc-next|
|000048e0| 2d 6f 70 65 72 61 74 69 | 6f 6e 5d 09 70 65 72 66 |-operati|on].perf|
|000048f0| 6f 72 6d 20 6e 65 78 74 | 20 6c 6f 67 69 63 61 6c |orm next| logical|
|00004900| 20 73 6f 75 72 63 65 20 | 63 6f 6e 74 72 6f 6c 20 | source |control |
|00004910| 6f 70 65 72 61 74 69 6f | 6e 20 6f 6e 20 63 75 72 |operatio|n on cur|
|00004920| 72 65 6e 74 20 66 69 6c | 65 0a 5c 5b 73 63 2d 73 |rent fil|e.\[sc-s|
|00004930| 68 6f 77 2d 63 68 61 6e | 67 65 73 5d 09 63 6f 6d |how-chan|ges].com|
|00004940| 70 61 72 65 20 74 68 65 | 20 76 65 72 73 69 6f 6e |pare the| version|
|00004950| 20 62 65 69 6e 67 20 65 | 64 69 74 65 64 20 77 69 | being e|dited wi|
|00004960| 74 68 20 61 6e 20 6f 6c | 64 65 72 20 6f 6e 65 0a |th an ol|der one.|
|00004970| 5c 5b 73 63 2d 76 65 72 | 73 69 6f 6e 2d 64 69 66 |\[sc-ver|sion-dif|
|00004980| 66 2d 66 69 6c 65 5d 09 | 63 6f 6d 70 61 72 65 20 |f-file].|compare |
|00004990| 74 77 6f 20 6f 6c 64 65 | 72 20 76 65 72 73 69 6f |two olde|r versio|
|000049a0| 6e 73 20 6f 66 20 61 20 | 66 69 6c 65 0a 5c 5b 73 |ns of a |file.\[s|
|000049b0| 63 2d 73 68 6f 77 2d 68 | 69 73 74 6f 72 79 5d 09 |c-show-h|istory].|
|000049c0| 09 64 69 73 70 6c 61 79 | 20 63 68 61 6e 67 65 20 |.display| change |
|000049d0| 68 69 73 74 6f 72 79 20 | 6f 66 20 63 75 72 72 65 |history |of curre|
|000049e0| 6e 74 20 66 69 6c 65 0a | 5c 5b 73 63 2d 76 69 73 |nt file.|\[sc-vis|
|000049f0| 69 74 2d 70 72 65 76 69 | 6f 75 73 2d 72 65 76 69 |it-previ|ous-revi|
|00004a00| 73 69 6f 6e 5d 09 64 69 | 73 70 6c 61 79 20 61 6e |sion].di|splay an|
|00004a10| 20 6f 6c 64 65 72 20 72 | 65 76 69 73 69 6f 6e 20 | older r|evision |
|00004a20| 6f 66 20 63 75 72 72 65 | 6e 74 20 66 69 6c 65 0a |of curre|nt file.|
|00004a30| 5c 5b 73 63 2d 72 65 76 | 65 72 74 2d 66 69 6c 65 |\[sc-rev|ert-file|
|00004a40| 5d 09 09 72 65 76 65 72 | 74 20 62 75 66 66 65 72 |]..rever|t buffer|
|00004a50| 20 74 6f 20 6c 61 73 74 | 20 63 68 65 63 6b 65 64 | to last| checked|
|00004a60| 2d 69 6e 20 76 65 72 73 | 69 6f 6e 0a 5c 5b 73 63 |-in vers|ion.\[sc|
|00004a70| 2d 6c 69 73 74 2d 61 6c | 6c 2d 6c 6f 63 6b 65 64 |-list-al|l-locked|
|00004a80| 2d 66 69 6c 65 73 5d 09 | 09 73 68 6f 77 20 61 6c |-files].|.show al|
|00004a90| 6c 20 66 69 6c 65 73 20 | 6c 6f 63 6b 65 64 20 69 |l files |locked i|
|00004aa0| 6e 20 63 75 72 72 65 6e | 74 20 64 69 72 65 63 74 |n curren|t direct|
|00004ab0| 6f 72 79 0a 5c 5b 73 63 | 2d 6c 69 73 74 2d 6c 6f |ory.\[sc|-list-lo|
|00004ac0| 63 6b 65 64 2d 66 69 6c | 65 73 5d 09 09 73 68 6f |cked-fil|es]..sho|
|00004ad0| 77 20 61 6c 6c 20 66 69 | 6c 65 73 20 6c 6f 63 6b |w all fi|les lock|
|00004ae0| 65 64 20 62 79 20 79 6f | 75 20 69 6e 20 63 75 72 |ed by yo|u in cur|
|00004af0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 0a 5c |rent dir|ectory.\|
|00004b00| 5b 73 63 2d 6c 69 73 74 | 2d 72 65 67 69 73 74 65 |[sc-list|-registe|
|00004b10| 72 65 64 2d 66 69 6c 65 | 73 5d 09 09 73 68 6f 77 |red-file|s]..show|
|00004b20| 20 61 6c 6c 20 66 69 6c | 65 73 20 75 6e 64 65 72 | all fil|es under|
|00004b30| 20 73 6f 75 72 63 65 20 | 63 6f 6e 74 72 6f 6c 20 | source |control |
|00004b40| 69 6e 20 63 75 72 72 65 | 6e 74 20 64 69 72 65 63 |in curre|nt direc|
|00004b50| 74 6f 72 79 0a 5c 5b 73 | 63 2d 75 70 64 61 74 65 |tory.\[s|c-update|
|00004b60| 2d 64 69 72 65 63 74 6f | 72 79 5d 09 09 67 65 74 |-directo|ry]..get|
|00004b70| 20 66 72 65 73 68 20 63 | 6f 70 69 65 73 20 6f 66 | fresh c|opies of|
|00004b80| 20 66 69 6c 65 73 20 63 | 68 65 63 6b 65 64 2d 69 | files c|hecked-i|
|00004b90| 6e 20 62 79 20 6f 74 68 | 65 72 73 20 69 6e 20 63 |n by oth|ers in c|
|00004ba0| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|00004bb0| 0a 5c 5b 73 63 2d 72 65 | 6e 61 6d 65 2d 66 69 6c |.\[sc-re|name-fil|
|00004bc0| 65 5d 09 09 72 65 6e 61 | 6d 65 20 74 68 65 20 63 |e]..rena|me the c|
|00004bd0| 75 72 72 65 6e 74 20 66 | 69 6c 65 20 61 6e 64 20 |urrent f|ile and |
|00004be0| 69 74 73 20 73 6f 75 72 | 63 65 20 63 6f 6e 74 72 |its sour|ce contr|
|00004bf0| 6f 6c 20 66 69 6c 65 0a | 0a 0a 57 68 69 6c 65 20 |ol file.|..While |
|00004c00| 79 6f 75 20 61 72 65 20 | 65 6e 74 65 72 69 6e 67 |you are |entering|
|00004c10| 20 61 20 63 68 61 6e 67 | 65 20 6c 6f 67 20 6d 65 | a chang|e log me|
|00004c20| 73 73 61 67 65 20 66 6f | 72 20 61 20 63 68 65 63 |ssage fo|r a chec|
|00004c30| 6b 20 69 6e 2c 20 73 63 | 2d 6c 6f 67 2d 65 6e 74 |k in, sc|-log-ent|
|00004c40| 72 79 2d 6d 6f 64 65 0a | 77 69 6c 6c 20 62 65 20 |ry-mode.|will be |
|00004c50| 69 6e 20 65 66 66 65 63 | 74 2e 0a 0a 47 6c 6f 62 |in effec|t...Glob|
|00004c60| 61 6c 20 75 73 65 72 20 | 6f 70 74 69 6f 6e 73 3a |al user |options:|
|00004c70| 0a 20 20 20 20 73 63 2d | 64 69 66 66 2d 63 6f 6d |. sc-|diff-com|
|00004c80| 6d 61 6e 64 09 41 20 6c | 69 73 74 20 63 6f 6e 73 |mand.A l|ist cons|
|00004c90| 69 73 74 69 6e 67 20 6f | 66 20 74 68 65 20 63 6f |isting o|f the co|
|00004ca0| 6d 6d 61 6e 64 20 61 6e | 64 20 66 6c 61 67 73 0a |mmand an|d flags.|
|00004cb0| 09 09 09 74 6f 20 62 65 | 20 75 73 65 64 20 66 6f |...to be| used fo|
|00004cc0| 72 20 67 65 6e 65 72 61 | 74 69 6e 67 20 63 6f 6e |r genera|ting con|
|00004cd0| 74 65 78 74 20 64 69 66 | 66 73 2e 0a 20 20 20 20 |text dif|fs.. |
|00004ce0| 73 63 2d 6d 6f 64 65 2d | 65 78 70 65 72 74 09 73 |sc-mode-|expert.s|
|00004cf0| 75 70 70 72 65 73 73 65 | 73 20 73 6f 6d 65 20 63 |uppresse|s some c|
|00004d00| 6f 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 70 72 6f 6d |onformat|ion prom|
|00004d10| 70 74 73 2c 0a 09 09 09 | 6e 6f 74 61 62 6c 79 20 |pts,....|notably |
|00004d20| 66 6f 72 20 64 65 6c 74 | 61 20 61 62 6f 72 74 73 |for delt|a aborts|
|00004d30| 20 61 6e 64 20 66 69 6c | 65 20 73 61 76 65 73 2e | and fil|e saves.|
|00004d40| 0a 20 20 20 20 73 63 2d | 6d 61 78 2d 6c 6f 67 2d |. sc-|max-log-|
|00004d50| 73 69 7a 65 09 73 70 65 | 63 69 66 69 65 73 20 74 |size.spe|cifies t|
|00004d60| 68 65 20 6d 61 78 69 6d | 75 6d 20 61 6c 6c 6f 77 |he maxim|um allow|
|00004d70| 61 62 6c 65 20 73 69 7a | 65 0a 09 09 09 6f 66 20 |able siz|e....of |
|00004d80| 61 20 6c 6f 67 20 6d 65 | 73 73 61 67 65 20 70 6c |a log me|ssage pl|
|00004d90| 75 73 20 6f 6e 65 2e 0a | 0a 0a 57 68 65 6e 20 75 |us one..|..When u|
|00004da0| 73 69 6e 67 20 53 43 43 | 53 20 79 6f 75 20 68 61 |sing SCC|S you ha|
|00004db0| 76 65 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 63 6f |ve addit|ional co|
|00004dc0| 6d 6d 61 6e 64 73 20 61 | 6e 64 20 6f 70 74 69 6f |mmands a|nd optio|
|00004dd0| 6e 73 0a 0a 5c 5b 73 63 | 63 73 2d 69 6e 73 65 72 |ns..\[sc|cs-inser|
|00004de0| 74 2d 68 65 61 64 65 72 | 73 5d 09 09 69 6e 73 65 |t-header|s]..inse|
|00004df0| 72 74 20 73 6f 75 72 63 | 65 20 63 6f 6e 74 72 6f |rt sourc|e contro|
|00004e00| 6c 20 68 65 61 64 65 72 | 73 20 69 6e 20 63 75 72 |l header|s in cur|
|00004e10| 72 65 6e 74 20 66 69 6c | 65 0a 0a 57 68 65 6e 20 |rent fil|e..When |
|00004e20| 79 6f 75 20 67 65 6e 65 | 72 61 74 65 20 68 65 61 |you gene|rate hea|
|00004e30| 64 65 72 73 20 69 6e 74 | 6f 20 61 20 62 75 66 66 |ders int|o a buff|
|00004e40| 65 72 20 75 73 69 6e 67 | 20 5c 5b 73 63 63 73 2d |er using| \[sccs-|
|00004e50| 69 6e 73 65 72 74 2d 68 | 65 61 64 65 72 73 5d 2c |insert-h|eaders],|
|00004e60| 0a 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 73 63 |.the val|ue of sc|
|00004e70| 2d 69 6e 73 65 72 74 2d | 68 65 61 64 65 72 73 2d |-insert-|headers-|
|00004e80| 68 6f 6f 6b 20 69 73 20 | 63 61 6c 6c 65 64 20 62 |hook is |called b|
|00004e90| 65 66 6f 72 65 20 69 6e | 73 65 72 74 69 6f 6e 2e |efore in|sertion.|
|00004ea0| 20 49 66 20 74 68 65 0a | 66 69 6c 65 20 69 73 20 | If the.|file is |
|00004eb0| 72 65 63 6f 67 6e 69 7a | 65 64 20 61 20 43 20 6f |recogniz|ed a C o|
|00004ec0| 72 20 4c 69 73 70 20 73 | 6f 75 72 63 65 2c 20 73 |r Lisp s|ource, s|
|00004ed0| 63 2d 69 6e 73 65 72 74 | 2d 63 2d 68 65 61 64 65 |c-insert|-c-heade|
|00004ee0| 72 2d 68 6f 6f 6b 20 6f | 72 0a 73 63 2d 69 6e 73 |r-hook o|r.sc-ins|
|00004ef0| 65 72 74 2d 6c 69 73 70 | 2d 68 65 61 64 65 72 2d |ert-lisp|-header-|
|00004f00| 68 6f 6f 6b 20 69 73 20 | 63 61 6c 6c 65 64 20 61 |hook is |called a|
|00004f10| 66 74 65 72 20 69 6e 73 | 65 72 74 69 6f 6e 20 72 |fter ins|ertion r|
|00004f20| 65 73 70 65 63 74 69 76 | 65 6c 79 2e 0a 0a 20 20 |espectiv|ely... |
|00004f30| 20 20 73 63 63 73 2d 68 | 65 61 64 65 72 73 2d 77 | sccs-h|eaders-w|
|00004f40| 61 6e 74 65 64 09 77 68 | 69 63 68 20 25 2d 6b 65 |anted.wh|ich %-ke|
|00004f50| 79 77 6f 72 64 73 20 74 | 6f 20 69 6e 73 65 72 74 |ywords t|o insert|
|00004f60| 20 77 68 65 6e 20 61 64 | 64 69 6e 67 0a 09 09 09 | when ad|ding....|
|00004f70| 68 65 61 64 65 72 73 20 | 77 69 74 68 20 43 2d 63 |headers |with C-c|
|00004f80| 20 68 0a 20 20 20 20 73 | 63 63 73 2d 69 6e 73 65 | h. s|ccs-inse|
|00004f90| 72 74 2d 73 74 61 74 69 | 63 09 69 66 20 6e 6f 6e |rt-stati|c.if non|
|00004fa0| 2d 6e 69 6c 2c 20 6b 65 | 79 77 6f 72 64 73 20 69 |-nil, ke|ywords i|
|00004fb0| 6e 73 65 72 74 65 64 20 | 69 6e 20 43 20 66 69 6c |nserted |in C fil|
|00004fc0| 65 73 0a 09 09 09 67 65 | 74 20 73 74 75 66 66 65 |es....ge|t stuffe|
|00004fd0| 64 20 69 6e 20 61 20 73 | 74 61 74 69 63 20 73 74 |d in a s|tatic st|
|00004fe0| 72 69 6e 67 20 61 72 65 | 61 20 73 6f 20 74 68 61 |ring are|a so tha|
|00004ff0| 74 0a 09 09 09 77 68 61 | 74 28 31 29 20 63 61 6e |t....wha|t(1) can|
|00005000| 20 73 65 65 20 74 68 65 | 6d 20 69 6e 20 74 68 65 | see the|m in the|
|00005010| 20 63 6f 6d 70 69 6c 65 | 64 20 6f 62 6a 65 63 74 | compile|d object|
|00005020| 20 63 6f 64 65 2e 0a 0a | 57 68 65 6e 20 75 73 69 | code...|When usi|
|00005030| 6e 67 20 43 56 53 20 79 | 6f 75 20 68 61 76 65 20 |ng CVS y|ou have |
|00005040| 61 64 64 69 74 69 6f 6e | 61 6c 20 63 6f 6d 6d 61 |addition|al comma|
|00005050| 6e 64 73 0a 0a 5c 5b 73 | 63 2d 63 76 73 2d 75 70 |nds..\[s|c-cvs-up|
|00005060| 64 61 74 65 2d 64 69 72 | 65 63 74 6f 72 79 5d 09 |date-dir|ectory].|
|00005070| 75 70 64 61 74 65 20 74 | 68 65 20 63 75 72 72 65 |update t|he curre|
|00005080| 6e 74 20 64 69 72 65 63 | 74 6f 72 79 20 75 73 69 |nt direc|tory usi|
|00005090| 6e 67 20 70 63 6c 2d 63 | 76 73 0a 5c 5b 73 63 2d |ng pcl-c|vs.\[sc-|
|000050a0| 63 76 73 2d 66 69 6c 65 | 2d 73 74 61 74 75 73 5d |cvs-file|-status]|
|000050b0| 09 09 73 68 6f 77 20 74 | 68 65 20 43 56 53 20 73 |..show t|he CVS s|
|000050c0| 74 61 74 75 73 20 6f 66 | 20 63 75 72 72 65 6e 74 |tatus of| current|
|000050d0| 20 66 69 6c 65 0a 1f 0a | 28 64 65 66 61 6c 69 61 | file...|(defalia|
|000050e0| 73 20 27 73 63 2d 6d 6f | 64 65 20 23 5b 28 73 79 |s 'sc-mo|de #[(sy|
|000050f0| 73 74 65 6d 29 20 22 08 | c1 61 ab 95 c2 c3 c4 5c |stem) ".|.a.....\|
|00005100| 22 88 c5 0e 06 43 21 88 | c2 c7 c8 5c 22 88 c1 89 |"....C!.|...\"...|
|00005110| 16 09 87 0e 09 ab 88 c9 | c1 21 88 c9 08 21 87 ca |........|.!...!..|
|00005120| cb 08 21 96 21 10 ca cc | cd 08 5c 22 21 1e 0e cf |..!.!...|..\"!...|
|00005130| 0e 0e 21 ac 86 d0 d1 08 | 5c 22 aa 9f 0e 0e 20 88 |..!.....|\".... .|
|00005140| d2 c3 c4 5c 22 88 d3 c1 | 0e 06 0e 14 42 5c 22 88 |...\"...|....B\".|
|00005150| d2 c7 c8 5c 22 88 d5 d6 | 21 88 08 89 16 09 29 87 |...\"...|!.....).|
|00005160| 22 20 5b 73 79 73 74 65 | 6d 20 6e 69 6c 20 72 65 |" [syste|m nil re|
|00005170| 6d 6f 76 65 2d 68 6f 6f | 6b 20 66 69 6e 64 2d 66 |move-hoo|k find-f|
|00005180| 69 6c 65 2d 68 6f 6f 6b | 73 20 73 63 2d 6d 6f 64 |ile-hook|s sc-mod|
|00005190| 65 2d 6c 69 6e 65 20 64 | 65 6c 65 74 65 2d 6d 65 |e-line d|elete-me|
|000051a0| 6e 75 2d 69 74 65 6d 20 | 73 63 2d 67 65 6e 65 72 |nu-item |sc-gener|
|000051b0| 69 63 2d 6e 61 6d 65 20 | 61 63 74 69 76 61 74 65 |ic-name |activate|
|000051c0| 2d 6d 65 6e 75 62 61 72 | 2d 68 6f 6f 6b 20 73 63 |-menubar|-hook sc|
|000051d0| 2d 73 65 6e 73 69 74 69 | 7a 65 2d 6d 65 6e 75 20 |-sensiti|ze-menu |
|000051e0| 73 63 2d 6d 6f 64 65 20 | 69 6e 74 65 72 6e 20 73 |sc-mode |intern s|
|000051f0| 79 6d 62 6f 6c 2d 6e 61 | 6d 65 20 66 6f 72 6d 61 |ymbol-na|me forma|
|00005200| 74 20 22 73 63 2d 73 65 | 74 2d 25 73 2d 6d 6f 64 |t "sc-se|t-%s-mod|
|00005210| 65 22 20 66 20 66 62 6f | 75 6e 64 70 20 65 72 72 |e" f fbo|undp err|
|00005220| 6f 72 20 22 4e 6f 20 73 | 6f 75 72 63 65 20 63 6f |or "No s|ource co|
|00005230| 6e 74 72 6f 6c 20 69 6e | 74 65 72 66 61 63 65 20 |ntrol in|terface |
|00005240| 66 6f 72 20 5c 22 25 73 | 5c 22 2e 20 20 50 6c 65 |for \"%s|\". Ple|
|00005250| 61 73 65 20 75 73 65 20 | 53 43 43 53 2c 20 52 43 |ase use |SCCS, RC|
|00005260| 53 2c 20 43 56 53 2c 20 | 6f 72 20 41 74 72 69 61 |S, CVS, |or Atria|
|00005270| 2e 22 20 61 64 64 2d 68 | 6f 6f 6b 20 61 64 64 2d |." add-h|ook add-|
|00005280| 73 75 62 6d 65 6e 75 20 | 73 63 2d 6d 65 6e 75 20 |submenu |sc-menu |
|00005290| 72 75 6e 2d 68 6f 6f 6b | 73 20 73 63 2d 6d 6f 64 |run-hook|s sc-mod|
|000052a0| 65 2d 68 6f 6f 6b 5d 20 | 34 20 28 23 24 20 2e 20 |e-hook] |4 (#$ . |
|000052b0| 31 38 35 32 37 29 20 28 | 62 79 74 65 2d 63 6f 64 |18527) (|byte-cod|
|000052c0| 65 20 22 08 ab 82 c1 87 | c2 c3 c4 c5 5c 22 21 43 |e ".....|....\"!C|
|000052d0| 87 22 20 5b 73 63 2d 6d | 6f 64 65 20 28 6e 69 6c |." [sc-m|ode (nil|
|000052e0| 29 20 69 6e 74 65 72 6e | 20 72 65 61 64 2d 73 74 |) intern| read-st|
|000052f0| 72 69 6e 67 20 22 54 75 | 72 6e 20 6f 6e 20 73 6f |ring "Tu|rn on so|
|00005300| 75 72 63 65 20 63 6f 6e | 74 72 6f 6c 20 6d 6f 64 |urce con|trol mod|
|00005310| 65 20 6f 6e 20 66 6f 72 | 3a 20 22 20 22 53 43 43 |e on for|: " "SCC|
|00005320| 53 22 5d 20 34 29 5d 29 | 0a 23 40 33 37 32 20 4d |S"] 4)])|.#@372 M|
|00005330| 61 6a 6f 72 20 6d 6f 64 | 65 20 66 6f 72 20 65 64 |ajor mod|e for ed|
|00005340| 69 74 69 6e 67 20 6c 6f | 67 20 6d 65 73 73 61 67 |iting lo|g messag|
|00005350| 65 2e 0a 0a 54 68 65 73 | 65 20 62 69 6e 64 69 6e |e...Thes|e bindin|
|00005360| 67 73 20 61 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |gs are a|vailable|
|00005370| 20 77 68 65 6e 20 65 6e | 74 65 72 69 6e 67 20 74 | when en|tering t|
|00005380| 68 65 20 6c 6f 67 20 6d | 65 73 73 61 67 65 0a 5c |he log m|essage.\|
|00005390| 5b 73 63 2d 6c 6f 67 2d | 65 78 69 74 5d 09 09 70 |[sc-log-|exit]..p|
|000053a0| 72 6f 63 65 65 64 20 77 | 69 74 68 20 63 68 65 63 |roceed w|ith chec|
|000053b0| 6b 20 69 6e 2c 20 65 6e | 64 69 6e 67 20 6c 6f 67 |k in, en|ding log|
|000053c0| 20 6d 65 73 73 61 67 65 | 20 65 6e 74 72 79 0a 5c | message| entry.\|
|000053d0| 5b 73 63 2d 69 6e 73 65 | 72 74 2d 6c 61 73 74 2d |[sc-inse|rt-last-|
|000053e0| 6c 6f 67 5d 09 09 69 6e | 73 65 72 74 20 6c 6f 67 |log]..in|sert log|
|000053f0| 20 6d 65 73 73 61 67 65 | 20 66 72 6f 6d 20 6c 61 | message| from la|
|00005400| 73 74 20 63 68 65 63 6b | 2d 69 6e 0a 5c 5b 73 63 |st check|-in.\[sc|
|00005410| 2d 61 62 6f 72 74 2d 63 | 68 65 63 6b 2d 69 6e 5d |-abort-c|heck-in]|
|00005420| 09 09 61 62 6f 72 74 20 | 74 68 69 73 20 63 68 65 |..abort |this che|
|00005430| 63 6b 2d 69 6e 0a 0a 45 | 6e 74 72 79 20 74 6f 20 |ck-in..E|ntry to |
|00005440| 74 68 65 20 63 68 61 6e | 67 65 2d 6c 6f 67 20 73 |the chan|ge-log s|
|00005450| 75 62 6d 6f 64 65 20 63 | 61 6c 6c 73 20 74 68 65 |ubmode c|alls the|
|00005460| 20 76 61 6c 75 65 20 6f | 66 20 74 65 78 74 2d 6d | value o|f text-m|
|00005470| 6f 64 65 2d 68 6f 6f 6b | 2c 20 74 68 65 6e 0a 74 |ode-hook|, then.t|
|00005480| 68 65 20 76 61 6c 75 65 | 20 73 63 2d 6c 6f 67 2d |he value| sc-log-|
|00005490| 65 6e 74 72 79 2d 6d 6f | 64 65 2d 68 6f 6f 6b 2e |entry-mo|de-hook.|
|000054a0| 0a 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 63 |...(defa|lias 'sc|
|000054b0| 2d 6c 6f 67 2d 65 6e 74 | 72 79 2d 6d 6f 64 65 20 |-log-ent|ry-mode |
|000054c0| 23 5b 6e 69 6c 20 22 c0 | 09 21 88 c2 0b 21 88 0c |#[nil ".|.!...!..|
|000054d0| 15 c6 16 07 c8 16 09 ca | cb cc 5c 22 87 22 20 5b |........|..\"." [|
|000054e0| 73 65 74 2d 73 79 6e 74 | 61 78 2d 74 61 62 6c 65 |set-synt|ax-table|
|000054f0| 20 74 65 78 74 2d 6d 6f | 64 65 2d 73 79 6e 74 61 | text-mo|de-synta|
|00005500| 78 2d 74 61 62 6c 65 20 | 75 73 65 2d 6c 6f 63 61 |x-table |use-loca|
|00005510| 6c 2d 6d 61 70 20 73 63 | 2d 6c 6f 67 2d 65 6e 74 |l-map sc|-log-ent|
|00005520| 72 79 2d 6b 65 79 6d 61 | 70 20 74 65 78 74 2d 6d |ry-keyma|p text-m|
|00005530| 6f 64 65 2d 61 62 62 72 | 65 76 2d 74 61 62 6c 65 |ode-abbr|ev-table|
|00005540| 20 6c 6f 63 61 6c 2d 61 | 62 62 72 65 76 2d 74 61 | local-a|bbrev-ta|
|00005550| 62 6c 65 20 73 63 2d 6c | 6f 67 2d 65 6e 74 72 79 |ble sc-l|og-entry|
|00005560| 2d 6d 6f 64 65 20 6d 61 | 6a 6f 72 2d 6d 6f 64 65 |-mode ma|jor-mode|
|00005570| 20 22 53 6f 75 72 63 65 | 20 43 6f 6e 74 72 6f 6c | "Source| Control|
|00005580| 20 43 68 61 6e 67 65 20 | 4c 6f 67 20 45 6e 74 72 | Change |Log Entr|
|00005590| 79 22 20 6d 6f 64 65 2d | 6e 61 6d 65 20 72 75 6e |y" mode-|name run|
|000055a0| 2d 68 6f 6f 6b 73 20 74 | 65 78 74 2d 6d 6f 64 65 |-hooks t|ext-mode|
|000055b0| 2d 68 6f 6f 6b 20 73 63 | 2d 6c 6f 67 2d 65 6e 74 |-hook sc|-log-ent|
|000055c0| 72 79 2d 6d 6f 64 65 2d | 68 6f 6f 6b 5d 20 33 20 |ry-mode-|hook] 3 |
|000055d0| 28 23 24 20 2e 20 32 31 | 32 39 35 29 20 6e 69 6c |(#$ . 21|295) nil|
|000055e0| 5d 29 0a 23 40 34 37 20 | 2a 44 69 72 65 63 74 6f |]).#@47 |*Directo|
|000055f0| 72 79 20 77 68 65 72 65 | 20 74 6f 20 66 69 6e 64 |ry where| to find|
|00005600| 20 74 68 65 20 73 63 63 | 73 20 65 78 65 63 75 74 | the scc|s execut|
|00005610| 61 62 6c 65 73 1f 0a 28 | 64 65 66 76 61 72 20 73 |ables..(|defvar s|
|00005620| 63 63 73 2d 62 69 6e 2d | 64 69 72 65 63 74 6f 72 |ccs-bin-|director|
|00005630| 79 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |y (byte-|code "..|
|00005640| 21 ab 82 c2 87 c0 c3 21 | ab 82 c4 87 c5 c2 21 ab |!......!|......!.|
|00005650| 82 c2 87 c5 c6 21 ab 82 | c6 87 c4 87 22 20 5b 66 |.....!..|...." [f|
|00005660| 69 6c 65 2d 65 78 65 63 | 75 74 61 62 6c 65 2d 70 |ile-exec|utable-p|
|00005670| 20 22 2f 75 73 72 2f 73 | 63 63 73 2f 75 6e 67 65 | "/usr/s|ccs/unge|
|00005680| 74 22 20 22 2f 75 73 72 | 2f 73 63 63 73 22 20 22 |t" "/usr|/sccs" "|
|00005690| 2f 75 73 72 2f 62 69 6e | 2f 75 6e 67 65 74 22 20 |/usr/bin|/unget" |
|000056a0| 22 2f 75 73 72 2f 62 69 | 6e 22 20 66 69 6c 65 2d |"/usr/bi|n" file-|
|000056b0| 64 69 72 65 63 74 6f 72 | 79 2d 70 20 22 2f 75 73 |director|y-p "/us|
|000056c0| 72 2f 62 69 6e 2f 73 63 | 63 73 22 5d 20 32 29 20 |r/bin/sc|cs"] 2) |
|000056d0| 28 23 24 20 2e 20 2d 32 | 31 39 39 32 29 29 0a 23 |(#$ . -2|1992)).#|
|000056e0| 40 37 35 20 2a 53 43 43 | 53 20 68 65 61 64 65 72 |@75 *SCC|S header|
|000056f0| 20 6b 65 79 77 6f 72 64 | 73 20 74 6f 20 62 65 20 | keyword|s to be |
|00005700| 69 6e 73 65 72 74 65 64 | 20 77 68 65 6e 20 73 63 |inserted| when sc|
|00005710| 63 73 2d 69 6e 73 65 72 | 74 2d 68 65 61 64 65 72 |cs-inser|t-header|
|00005720| 20 69 73 20 65 78 65 63 | 75 74 65 64 2e 1f 0a 28 | is exec|uted...(|
|00005730| 64 65 66 76 61 72 20 73 | 63 63 73 2d 68 65 61 64 |defvar s|ccs-head|
|00005740| 65 72 73 2d 77 61 6e 74 | 65 64 20 27 28 22 25 57 |ers-want|ed '("%W|
|00005750| 25 22 29 20 28 23 24 20 | 2e 20 2d 32 32 32 34 34 |%") (#$ |. -22244|
|00005760| 29 29 0a 23 40 31 31 37 | 20 2a 49 6e 73 65 72 74 |)).#@117| *Insert|
|00005770| 20 61 20 73 74 61 74 69 | 63 20 63 68 61 72 61 63 | a stati|c charac|
|00005780| 74 65 72 20 73 74 72 69 | 6e 67 20 77 68 65 6e 20 |ter stri|ng when |
|00005790| 69 6e 73 65 72 74 69 6e | 67 20 73 6f 75 72 63 65 |insertin|g source|
|000057a0| 20 63 6f 6e 74 72 6f 6c | 20 68 65 61 64 65 72 73 | control| headers|
|000057b0| 20 69 6e 20 43 20 6d 6f | 64 65 2e 0a 4f 6e 6c 79 | in C mo|de..Only|
|000057c0| 20 72 65 6c 65 76 61 6e | 74 20 66 6f 72 20 74 68 | relevan|t for th|
|000057d0| 65 20 53 43 43 53 20 6d | 6f 64 65 2e 1f 0a 28 64 |e SCCS m|ode...(d|
|000057e0| 65 66 76 61 72 20 73 63 | 63 73 2d 69 6e 73 65 72 |efvar sc|cs-inser|
|000057f0| 74 2d 73 74 61 74 69 63 | 20 74 20 28 23 24 20 2e |t-static| t (#$ .|
|00005800| 20 2d 32 32 33 37 37 29 | 29 0a 28 62 79 74 65 2d | -22377)|).(byte-|
|00005810| 63 6f 64 65 20 22 c0 c1 | 21 ac 82 c2 11 c1 0b 42 |code "..|!......B|
|00005820| 13 c0 c4 21 ac 82 c2 14 | c4 0b 42 13 c2 87 22 20 |...!....|..B..." |
|00005830| 5b 62 6f 75 6e 64 70 20 | 73 63 63 73 2d 6c 6f 67 |[boundp |sccs-log|
|00005840| 2d 65 6e 74 72 79 2d 6d | 6f 64 65 20 6e 69 6c 20 |-entry-m|ode nil |
|00005850| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|00005860| 74 20 73 63 63 73 2d 63 | 75 72 72 65 6e 74 2d 6d |t sccs-c|urrent-m|
|00005870| 61 6a 6f 72 2d 76 65 72 | 73 69 6f 6e 5d 20 32 29 |ajor-ver|sion] 2)|
|00005880| 0a 23 40 35 38 20 52 65 | 74 75 72 6e 20 74 68 65 |.#@58 Re|turn the|
|00005890| 20 73 63 63 73 2d 66 69 | 6c 65 20 6e 61 6d 65 20 | sccs-fi|le name |
|000058a0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |correspo|nding to|
|000058b0| 20 61 20 67 69 76 65 6e | 20 66 69 6c 65 2e 1f 0a | a given| file...|
|000058c0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 63 63 73 2d |(defalia|s 'sccs-|
|000058d0| 6e 61 6d 65 20 23 5b 28 | 66 69 6c 65 20 26 6f 70 |name #[(|file &op|
|000058e0| 74 69 6f 6e 61 6c 20 6c | 65 74 74 65 72 29 20 22 |tional l|etter) "|
|000058f0| 08 ad 97 c1 08 21 1a c3 | c4 c5 5c 6e 21 b0 01 0e |.....!..|..\n!...|
|00005900| 06 ae 81 c7 c8 5c 6e 21 | b0 01 24 29 87 22 20 5b |.....\n!|..$)." [|
|00005910| 66 69 6c 65 20 65 78 70 | 61 6e 64 2d 66 69 6c 65 |file exp|and-file|
|00005920| 2d 6e 61 6d 65 20 65 78 | 70 61 6e 64 65 64 2d 66 |-name ex|panded-f|
|00005930| 69 6c 65 20 66 6f 72 6d | 61 74 20 22 25 73 53 43 |ile form|at "%sSC|
|00005940| 43 53 2f 25 73 2e 25 73 | 22 20 66 69 6c 65 2d 6e |CS/%s.%s|" file-n|
|00005950| 61 6d 65 2d 64 69 72 65 | 63 74 6f 72 79 20 6c 65 |ame-dire|ctory le|
|00005960| 74 74 65 72 20 22 73 22 | 20 66 69 6c 65 2d 6e 61 |tter "s"| file-na|
|00005970| 6d 65 2d 6e 6f 6e 64 69 | 72 65 63 74 6f 72 79 5d |me-nondi|rectory]|
|00005980| 20 36 20 28 23 24 20 2e | 20 32 32 36 36 32 29 5d | 6 (#$ .| 22662)]|
|00005990| 29 0a 23 40 35 34 20 4c | 6f 63 6b 2d 69 6e 66 6f |).#@54 L|ock-info|
|000059a0| 20 6d 65 74 68 6f 64 20 | 66 6f 72 20 53 43 43 53 | method |for SCCS|
|000059b0| 2e 20 20 53 65 65 20 73 | 63 2d 67 65 6e 65 72 69 |. See s|c-generi|
|000059c0| 63 2d 6c 6f 63 6b 2d 69 | 6e 66 6f 1f 0a 28 64 65 |c-lock-i|nfo..(de|
|000059d0| 66 61 6c 69 61 73 20 27 | 73 63 63 73 2d 6c 6f 63 |falias '|sccs-loc|
|000059e0| 6b 2d 69 6e 66 6f 20 23 | 5b 28 66 69 6c 65 29 20 |k-info #|[(file) |
|000059f0| 22 c0 09 c2 5c 22 c0 09 | c3 5c 22 1c 1d 09 ab 85 |"...\"..|.\".....|
|00005a00| c6 0d 21 ac 83 c7 aa c6 | c6 0c 21 ac 85 c7 89 44 |..!.....|..!....D|
|00005a10| aa bc 8a c8 c9 21 71 88 | ca 0c 21 88 cb cc c7 cd |.....!q.|..!.....|
|00005a20| 23 ab 88 ce cf c7 cd 23 | 88 aa 71 65 62 88 d0 79 |#......#|..qeb..y|
|00005a30| 88 60 c7 7f 88 60 7b d0 | 79 88 60 c7 7f 88 60 7b |.`...`{.|y.`...`{|
|00005a40| 1e 11 1e 12 d3 70 21 88 | 0e 11 0e 12 2b 44 2a 87 |.....p!.|....+D*.|
|00005a50| 22 20 5b 73 63 63 73 2d | 6e 61 6d 65 20 66 69 6c |" [sccs-|name fil|
|00005a60| 65 20 22 73 22 20 22 70 | 22 20 6c 6f 63 6b 2d 66 |e "s" "p|" lock-f|
|00005a70| 69 6c 65 20 73 63 63 73 | 2d 66 69 6c 65 20 66 69 |ile sccs|-file fi|
|00005a80| 6c 65 2d 65 78 69 73 74 | 73 2d 70 20 6e 69 6c 20 |le-exist|s-p nil |
|00005a90| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|00005aa0| 65 20 22 2a 53 43 43 53 | 20 74 6d 70 2a 22 20 69 |e "*SCCS| tmp*" i|
|00005ab0| 6e 73 65 72 74 2d 66 69 | 6c 65 20 73 65 61 72 63 |nsert-fi|le searc|
|00005ac0| 68 2d 66 6f 72 77 61 72 | 64 20 22 20 22 20 74 20 |h-forwar|d " " t |
|00005ad0| 72 65 70 6c 61 63 65 2d | 6d 61 74 63 68 20 22 5c |replace-|match "\|
|00005ae0| 6e 22 20 31 20 6e 61 6d | 65 20 72 65 76 69 73 69 |n" 1 nam|e revisi|
|00005af0| 6f 6e 20 6b 69 6c 6c 2d | 62 75 66 66 65 72 5d 20 |on kill-|buffer] |
|00005b00| 34 20 28 23 24 20 2e 20 | 32 32 39 33 35 29 5d 29 |4 (#$ . |22935)])|
|00005b10| 0a 23 40 37 30 20 45 78 | 65 63 75 74 65 20 61 6e |.#@70 Ex|ecute an|
|00005b20| 20 53 43 43 53 20 63 6f | 6d 6d 61 6e 64 2c 20 6e | SCCS co|mmand, n|
|00005b30| 6f 74 69 66 79 69 6e 67 | 20 74 68 65 20 75 73 65 |otifying| the use|
|00005b40| 72 20 61 6e 64 20 63 68 | 65 63 6b 69 6e 67 20 66 |r and ch|ecking f|
|00005b50| 6f 72 20 65 72 72 6f 72 | 73 2e 1f 0a 28 64 65 66 |or error|s...(def|
|00005b60| 61 6c 69 61 73 20 27 73 | 63 63 73 2d 64 6f 2d 63 |alias 's|ccs-do-c|
|00005b70| 6f 6d 6d 61 6e 64 20 23 | 5b 28 62 75 66 66 65 72 |ommand #|[(buffer|
|00005b80| 20 63 6f 6d 6d 61 6e 64 | 20 66 69 6c 65 20 26 72 | command| file &r|
|00005b90| 65 73 74 20 66 6c 61 67 | 73 29 20 22 08 09 42 19 |est flag|s) "..B.|
|00005ba0| c2 c3 0c 0d 89 0e 06 c7 | 0e 06 21 0e 08 26 07 29 |........|..!..&.)|
|00005bb0| 87 22 20 5b 73 63 63 73 | 2d 62 69 6e 2d 64 69 72 |." [sccs|-bin-dir|
|00005bc0| 65 63 74 6f 72 79 20 65 | 78 65 63 2d 70 61 74 68 |ectory e|xec-path|
|00005bd0| 20 61 70 70 6c 79 20 73 | 63 2d 64 6f 2d 63 6f 6d | apply s|c-do-com|
|00005be0| 6d 61 6e 64 20 62 75 66 | 66 65 72 20 63 6f 6d 6d |mand buf|fer comm|
|00005bf0| 61 6e 64 20 66 69 6c 65 | 20 73 63 63 73 2d 6e 61 |and file| sccs-na|
|00005c00| 6d 65 20 66 6c 61 67 73 | 5d 20 38 20 28 23 24 20 |me flags|] 8 (#$ |
|00005c10| 2e 20 32 33 33 31 38 29 | 5d 29 0a 23 40 31 32 33 |. 23318)|]).#@123|
|00005c20| 20 43 68 65 63 6b 73 20 | 61 20 66 69 6c 65 20 69 | Checks |a file i|
|00005c30| 6e 74 6f 20 73 63 63 73 | 2e 0a 46 49 4c 45 20 69 |nto sccs|..FILE i|
|00005c40| 73 20 74 68 65 20 75 6e | 6d 6f 64 69 66 69 65 64 |s the un|modified|
|00005c50| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 66 69 6c | name of| the fil|
|00005c60| 65 2e 20 20 53 49 44 20 | 73 68 6f 75 6c 64 20 62 |e. SID |should b|
|00005c70| 65 20 74 68 65 20 62 61 | 73 65 2d 6c 65 76 65 6c |e the ba|se-level|
|00005c80| 20 73 69 64 20 74 6f 0a | 63 68 65 63 6b 20 69 74 | sid to.|check it|
|00005c90| 20 69 6e 20 75 6e 64 65 | 72 2e 1f 0a 28 64 65 66 | in unde|r...(def|
|00005ca0| 61 6c 69 61 73 20 27 73 | 63 63 73 2d 61 64 6d 69 |alias 's|ccs-admi|
|00005cb0| 6e 20 23 5b 28 66 69 6c | 65 20 73 69 64 29 20 22 |n #[(fil|e sid) "|
|00005cc0| c0 20 ab 8c c1 c2 c3 c4 | 20 5c 22 21 ab 83 c5 20 |. ......| \"!... |
|00005cd0| 88 c6 c7 c8 0e 09 ca 0e | 09 50 cb 0e 0c 50 25 88 |........|.P...P%.|
|00005ce0| cd ce cf 89 89 d0 0e 09 | 26 06 88 d1 0e 09 cf 5c |........|&......\|
|00005cf0| 22 87 22 20 5b 62 75 66 | 66 65 72 2d 6d 6f 64 69 |"." [buf|fer-modi|
|00005d00| 66 69 65 64 2d 70 20 79 | 2d 6f 72 2d 6e 2d 70 20 |fied-p y|-or-n-p |
|00005d10| 66 6f 72 6d 61 74 20 22 | 25 73 20 68 61 73 20 62 |format "|%s has b|
|00005d20| 65 65 6e 20 6d 6f 64 69 | 66 69 65 64 2e 20 57 72 |een modi|fied. Wr|
|00005d30| 69 74 65 20 69 74 20 6f | 75 74 3f 20 22 20 62 75 |ite it o|ut? " bu|
|00005d40| 66 66 65 72 2d 6e 61 6d | 65 20 73 61 76 65 2d 62 |ffer-nam|e save-b|
|00005d50| 75 66 66 65 72 20 73 63 | 63 73 2d 64 6f 2d 63 6f |uffer sc|cs-do-co|
|00005d60| 6d 6d 61 6e 64 20 22 2a | 53 43 43 53 2a 22 20 22 |mmand "*|SCCS*" "|
|00005d70| 61 64 6d 69 6e 22 20 66 | 69 6c 65 20 22 2d 69 22 |admin" f|ile "-i"|
|00005d80| 20 22 2d 72 22 20 73 69 | 64 20 63 61 6c 6c 2d 70 | "-r" si|d call-p|
|00005d90| 72 6f 63 65 73 73 20 22 | 63 68 6d 6f 64 22 20 6e |rocess "|chmod" n|
|00005da0| 69 6c 20 22 2d 77 22 20 | 73 63 63 73 2d 63 68 65 |il "-w" |sccs-che|
|00005db0| 63 6b 2d 6f 75 74 5d 20 | 37 20 28 23 24 20 2e 20 |ck-out] |7 (#$ . |
|00005dc0| 32 33 35 38 35 29 5d 29 | 0a 28 64 65 66 61 6c 69 |23585)])|.(defali|
|00005dd0| 61 73 20 27 73 63 63 73 | 2d 72 65 67 69 73 74 65 |as 'sccs|-registe|
|00005de0| 72 20 23 5b 28 66 69 6c | 65 20 72 65 76 69 73 69 |r #[(fil|e revisi|
|00005df0| 6f 6e 29 20 22 c0 20 88 | c1 c2 21 ac 89 c3 c4 21 |on) ". .|..!....!|
|00005e00| ab 84 c5 c2 21 88 c6 0e | 07 0e 08 ab 84 0e 08 aa |....!...|........|
|00005e10| 8b c9 ca cb 8f ab 83 cc | aa 82 0e 0d 5c 22 87 22 |........|....\"."|
|00005e20| 20 5b 73 63 63 73 2d 6c | 6f 61 64 2d 76 61 72 73 | [sccs-l|oad-vars|
|00005e30| 20 66 69 6c 65 2d 65 78 | 69 73 74 73 2d 70 20 22 | file-ex|ists-p "|
|00005e40| 53 43 43 53 22 20 79 2d | 6f 72 2d 6e 2d 70 20 22 |SCCS" y-|or-n-p "|
|00005e50| 44 69 72 65 63 74 6f 72 | 79 20 53 43 43 53 20 64 |Director|y SCCS d|
|00005e60| 6f 65 73 20 6e 6f 74 20 | 65 78 69 73 74 2c 20 63 |oes not |exist, c|
|00005e70| 72 65 61 74 65 20 69 74 | 3f 22 20 6d 61 6b 65 2d |reate it|?" make-|
|00005e80| 64 69 72 65 63 74 6f 72 | 79 20 73 63 63 73 2d 61 |director|y sccs-a|
|00005e90| 64 6d 69 6e 20 66 69 6c | 65 20 72 65 76 69 73 69 |dmin fil|e revisi|
|00005ea0| 6f 6e 20 6e 69 6c 20 28 | 62 79 74 65 2d 63 6f 64 |on nil (|byte-cod|
|00005eb0| 65 20 22 c0 c1 21 88 c2 | 87 22 20 5b 6c 6f 61 64 |e "..!..|." [load|
|00005ec0| 2d 66 69 6c 65 20 22 53 | 43 43 53 2f 65 6d 61 63 |-file "S|CCS/emac|
|00005ed0| 73 2d 76 61 72 73 2e 65 | 6c 22 20 6e 69 6c 5d 20 |s-vars.e|l" nil] |
|00005ee0| 32 29 20 28 28 65 72 72 | 6f 72 20 74 29 29 20 22 |2) ((err|or t)) "|
|00005ef0| 31 22 20 73 63 63 73 2d | 63 75 72 72 65 6e 74 2d |1" sccs-|current-|
|00005f00| 6d 61 6a 6f 72 2d 76 65 | 72 73 69 6f 6e 5d 20 35 |major-ve|rsion] 5|
|00005f10| 5d 29 0a 23 40 35 38 20 | 52 65 74 72 69 65 76 65 |]).#@58 |Retrieve|
|00005f20| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 6c | a copy |of the l|
|00005f30| 61 74 65 73 74 20 76 65 | 72 73 69 6f 6e 20 6f 66 |atest ve|rsion of|
|00005f40| 20 74 68 65 20 67 69 76 | 65 6e 20 66 69 6c 65 2e | the giv|en file.|
|00005f50| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 63 |..(defal|ias 'scc|
|00005f60| 73 2d 63 68 65 63 6b 2d | 6f 75 74 20 23 5b 28 66 |s-check-|out #[(f|
|00005f70| 69 6c 65 20 6c 6f 63 6b | 70 29 20 22 c0 c1 c2 0b |ile lock|p) "....|
|00005f80| 0c ad 81 c5 24 87 22 20 | 5b 73 63 63 73 2d 64 6f |....$." |[sccs-do|
|00005f90| 2d 63 6f 6d 6d 61 6e 64 | 20 22 2a 53 43 43 53 2a |-command| "*SCCS*|
|00005fa0| 22 20 22 67 65 74 22 20 | 66 69 6c 65 20 6c 6f 63 |" "get" |file loc|
|00005fb0| 6b 70 20 22 2d 65 22 5d | 20 35 20 28 23 24 20 2e |kp "-e"]| 5 (#$ .|
|00005fc0| 20 32 34 33 34 34 29 5d | 29 0a 28 64 65 66 61 6c | 24344)]|).(defal|
|00005fd0| 69 61 73 20 27 73 63 63 | 73 2d 67 65 74 2d 76 65 |ias 'scc|s-get-ve|
|00005fe0| 72 73 69 6f 6e 20 23 5b | 28 66 69 6c 65 20 62 75 |rsion #[|(file bu|
|00005ff0| 66 66 65 72 20 72 65 76 | 69 73 69 6f 6e 29 20 22 |ffer rev|ision) "|
|00006000| c0 09 c2 0b 0c ad 83 c5 | 0c 50 c6 c7 26 06 87 22 |........|.P..&.."|
|00006010| 20 5b 73 63 63 73 2d 64 | 6f 2d 63 6f 6d 6d 61 6e | [sccs-d|o-comman|
|00006020| 64 20 62 75 66 66 65 72 | 20 22 67 65 74 22 20 66 |d buffer| "get" f|
|00006030| 69 6c 65 20 72 65 76 69 | 73 69 6f 6e 20 22 2d 72 |ile revi|sion "-r|
|00006040| 22 20 22 2d 70 22 20 22 | 2d 73 22 5d 20 37 5d 29 |" "-p" "|-s"] 7])|
|00006050| 0a 23 40 36 38 20 43 68 | 65 63 6b 2d 69 6e 20 61 |.#@68 Ch|eck-in a|
|00006060| 20 67 69 76 65 6e 20 76 | 65 72 73 69 6f 6e 20 6f | given v|ersion o|
|00006070| 66 20 74 68 65 20 67 69 | 76 65 6e 20 66 69 6c 65 |f the gi|ven file|
|00006080| 20 77 69 74 68 20 74 68 | 65 20 67 69 76 65 6e 20 | with th|e given |
|00006090| 63 6f 6d 6d 65 6e 74 2e | 1f 0a 28 64 65 66 61 6c |comment.|..(defal|
|000060a0| 69 61 73 20 27 73 63 63 | 73 2d 63 68 65 63 6b 2d |ias 'scc|s-check-|
|000060b0| 69 6e 20 23 5b 28 66 69 | 6c 65 20 72 65 76 69 73 |in #[(fi|le revis|
|000060c0| 69 6f 6e 20 63 6f 6d 6d | 65 6e 74 29 20 22 c0 c1 |ion comm|ent) "..|
|000060d0| c2 0b c4 c5 c6 0e 07 5c | 22 c5 c8 0e 09 5c 22 26 |.......\|"....\"&|
|000060e0| 06 88 ca cb cc 89 89 cd | 0b 26 06 88 8a ce 0b 21 |........|.&.....!|
|000060f0| 89 1e 0f ad 88 0e 0f 71 | 88 d0 0b cc 5c 22 2a 87 |.......q|....\"*.|
|00006100| 22 20 5b 73 63 63 73 2d | 64 6f 2d 63 6f 6d 6d 61 |" [sccs-|do-comma|
|00006110| 6e 64 20 22 2a 53 43 43 | 53 2a 22 20 22 64 65 6c |nd "*SCC|S*" "del|
|00006120| 74 61 22 20 66 69 6c 65 | 20 22 2d 6e 22 20 66 6f |ta" file| "-n" fo|
|00006130| 72 6d 61 74 20 22 2d 72 | 25 73 22 20 72 65 76 69 |rmat "-r|%s" revi|
|00006140| 73 69 6f 6e 20 22 2d 79 | 25 73 22 20 63 6f 6d 6d |sion "-y|%s" comm|
|00006150| 65 6e 74 20 63 61 6c 6c | 2d 70 72 6f 63 65 73 73 |ent call|-process|
|00006160| 20 22 63 68 6d 6f 64 22 | 20 6e 69 6c 20 22 2d 77 | "chmod"| nil "-w|
|00006170| 22 20 67 65 74 2d 66 69 | 6c 65 2d 62 75 66 66 65 |" get-fi|le-buffe|
|00006180| 72 20 62 75 66 66 65 72 | 20 73 63 63 73 2d 63 68 |r buffer| sccs-ch|
|00006190| 65 63 6b 2d 6f 75 74 5d | 20 31 30 20 28 23 24 20 |eck-out]| 10 (#$ |
|000061a0| 2e 20 32 34 36 36 32 29 | 5d 29 0a 28 64 65 66 61 |. 24662)|]).(defa|
|000061b0| 6c 69 61 73 20 27 73 63 | 63 73 2d 68 69 73 74 6f |lias 'sc|cs-histo|
|000061c0| 72 79 20 23 5b 28 66 69 | 6c 65 29 20 22 c0 70 c1 |ry #[(fi|le) ".p.|
|000061d0| 5c 6e 23 87 22 20 5b 73 | 63 63 73 2d 64 6f 2d 63 |\n#." [s|ccs-do-c|
|000061e0| 6f 6d 6d 61 6e 64 20 22 | 70 72 73 22 20 66 69 6c |ommand "|prs" fil|
|000061f0| 65 5d 20 34 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |e] 4]).(|defalias|
|00006200| 20 27 73 63 63 73 2d 73 | 61 76 65 2d 76 61 72 73 | 'sccs-s|ave-vars|
|00006210| 20 23 5b 28 73 69 64 29 | 20 22 8a c0 c1 21 88 c2 | #[(sid)| "...!..|
|00006220| 20 88 c3 0c c5 b1 03 88 | c6 20 29 87 22 20 5b 66 | .......|. )." [f|
|00006230| 69 6e 64 2d 66 69 6c 65 | 20 22 53 43 43 53 2f 65 |ind-file| "SCCS/e|
|00006240| 6d 61 63 73 2d 76 61 72 | 73 2e 65 6c 22 20 65 72 |macs-var|s.el" er|
|00006250| 61 73 65 2d 62 75 66 66 | 65 72 20 22 28 73 65 74 |ase-buff|er "(set|
|00006260| 71 20 73 63 63 73 2d 63 | 75 72 72 65 6e 74 2d 6d |q sccs-c|urrent-m|
|00006270| 61 6a 6f 72 2d 76 65 72 | 73 69 6f 6e 20 5c 22 22 |ajor-ver|sion \""|
|00006280| 20 73 69 64 20 22 5c 22 | 29 22 20 62 61 73 69 63 | sid "\"|)" basic|
|00006290| 2d 73 61 76 65 2d 62 75 | 66 66 65 72 5d 20 33 5d |-save-bu|ffer] 3]|
|000062a0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 63 |).(defal|ias 'scc|
|000062b0| 73 2d 6c 6f 61 64 2d 76 | 61 72 73 20 23 5b 6e 69 |s-load-v|ars #[ni|
|000062c0| 6c 20 22 c0 c1 c2 8f ad | 83 c3 89 14 87 22 20 5b |l ".....|....." [|
|000062d0| 6e 69 6c 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |nil (byt|e-code "|
|000062e0| c0 c1 21 88 c2 87 22 20 | 5b 6c 6f 61 64 2d 66 69 |..!..." |[load-fi|
|000062f0| 6c 65 20 22 53 43 43 53 | 2f 65 6d 61 63 73 2d 76 |le "SCCS|/emacs-v|
|00006300| 61 72 73 2e 65 6c 22 20 | 6e 69 6c 5d 20 32 29 20 |ars.el" |nil] 2) |
|00006310| 28 28 65 72 72 6f 72 20 | 74 29 29 20 22 31 22 20 |((error |t)) "1" |
|00006320| 73 63 63 73 2d 63 75 72 | 72 65 6e 74 2d 6d 61 6a |sccs-cur|rent-maj|
|00006330| 6f 72 2d 76 65 72 73 69 | 6f 6e 5d 20 33 5d 29 0a |or-versi|on] 3]).|
|00006340| 23 40 31 37 33 20 2a 49 | 6e 73 65 72 74 20 68 65 |#@173 *I|nsert he|
|00006350| 61 64 65 72 73 20 66 6f | 72 20 75 73 65 20 77 69 |aders fo|r use wi|
|00006360| 74 68 20 74 68 65 20 53 | 6f 75 72 63 65 20 43 6f |th the S|ource Co|
|00006370| 64 65 20 43 6f 6e 74 72 | 6f 6c 20 53 79 73 74 65 |de Contr|ol Syste|
|00006380| 6d 2e 0a 48 65 61 64 65 | 72 73 20 64 65 73 69 72 |m..Heade|rs desir|
|00006390| 65 64 20 61 72 65 20 69 | 6e 73 65 72 74 65 64 20 |ed are i|nserted |
|000063a0| 61 74 20 74 68 65 20 73 | 74 61 72 74 20 6f 66 20 |at the s|tart of |
|000063b0| 74 68 65 20 62 75 66 66 | 65 72 2c 20 61 6e 64 20 |the buff|er, and |
|000063c0| 61 72 65 20 70 75 6c 6c | 65 64 20 66 72 6f 6d 20 |are pull|ed from |
|000063d0| 0a 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 73 63 |.the var|iable sc|
|000063e0| 63 73 2d 68 65 61 64 65 | 72 73 2d 77 61 6e 74 65 |cs-heade|rs-wante|
|000063f0| 64 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 63 |d..(defa|lias 'sc|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.